2 ms·
Do shells exist which don't have a fixed maximum argument size, so you'd never need "xargs"? Or is the problem innate to Unix?
by amelius 7y ago
Do shells exist which don't have a fixed maximum argument size, so you'd never need "xargs"? Or is the problem innate to Unix?
- 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.
- felixfbecker 7y agoafaik PowerShell has no limit on the amount of arguments