3 ms·
Most command line programs are open source so you can do something about that if it really makes sense.
by dinkumthinkum 4y ago
Most command line programs are open source so you can do something about that if it really makes sense.
- jeffbee 4y agoYou can't fix this in the tool you are trying to invoke because the tool never runs. The error E2BIG is returned from the syscall `execve` because it fails to run the program. If you just want to work around this on some architectures you can simply raise the stack limit which defaults to 8MiB. If you want to do this in a portable way, learn to use `xargs` or `find`.
- amelius 4y ago> If you want to do this in a portable way, learn to use `xargs` or `find`. xargs and find are a hack here, because it will start the target program multiple times. They only work if CMD FILE1 FILE2 has the same meaning as CMD FILE1; CMD FILE2. The fix with the stack limit is also a hack. What other system requires you to specify a hard limit, these days?
- genericacct 4y ago-N 1 will invoke the command with only one arg at a time