12 ms·
A lower limit could be troublesome with eg. wildcards: `tar cf stuff.tar *`.
by mistaken 12y ago
A lower limit could be troublesome with eg. wildcards: `tar cf stuff.tar *`.
- reidrac 12y agoI don't know if it is related, but there used to be a limit in shell parameters expansion in exec, that's why xargs was so handy when "rm *.txt" wasn't possible. That was changed some years ago: https://lkml.org/lkml/2007/8/19/44 https://lkml.org/lkml/2007/8/19/44
- aw3c2 12y agoAt least in Bash * still won't work if you have a lot of files with long names: $ for i in {1..99999}; do touch "this is a really long filename so lets see what bash does or does not will it fail or will it work"$i; done $ rm * bash: /usr/bin/rm: Argument list too long
- jfindley 12y agoWhen doing things like this, you'll be hitting your shell's ARG_MAX way before you hit the kernel limit. The 15 million craziness only applies to cases where you're calling executables in ways that don't go through the shell, such as execve().