How to cause “Argument list too long” error?

Context for the question: According to POSIX specs, ARG_MAX is maximum length of command-line arguments to exec() family of functions. Which lead me to believe that’s actual number of arguments, however that clearly didn’t work: $ ulimit -s 8192 $ touch {1..18000}.jpg $ rm *.jpg $ Clearly, this works fine, despite being in length over … Read more