On Wed, Sep 30, 2020 at 09:12:30AM +0200, Michael Green wrote: > seq 1 40000 | xargs ./bash_bug > > BEGIN: bash_bug > -------------------------------------- > #!/usr/bin/env bash > . "exists_or_not" > export A123456789012345="${BASH_ARGV[*]}" > mkdir -p /tmp/foobar > perl -E 'say "hello world"' 'foo' 'bar' > -------------------------------------- > END bash_bug
Why do you consider this to be a bug in bash? You've asked your operating system to run a command (mkdir or perl) with an environment that exceeds the size the kernel will permit. The kernel gives you the error.