[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: execve E2BIG (Argument list too long)
From: |
Greg Wooledge |
Subject: |
Re: execve E2BIG (Argument list too long) |
Date: |
Wed, 30 Sep 2020 11:01:58 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
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.