3 ms·
> ARG_MAX, maximum length of arguments for a new process > or why do you get > command: arg list too long > [...] > It's only the exec() system call and its
by codetrotter 7y ago
> ARG_MAX, maximum length of arguments for a new process
> or why do you get
> command: arg list too long
> [...]
> It's only the exec() system call and its direct variants, which will yield this error.
They return the corresponding error condition E2BIG (<sys/errno.h>).
The shell is not to blame, it just delivers this error to you.
https://www.in-ulm.de/~mascheck/various/argmax/ https://www.in-ulm.de/~mascheck/various/argmax/
Additionally, see also https://unix.stackexchange.com/a/120842 https://unix.stackexchange.com/a/120842 which speaks a bit about Linux specifics, and how Linux behaves a bit differently from a lot of the other operating systems in the Unix family with regards to limits on the length of arguments.