Re: Change in indirect expansion behavior from 4.4 to 5.0

2020-09-30 Thread Davide Brini
On Tue, 29 Sep 2020 21:28:59 -0700, Jason Miller wrote: > Gentoo linux, GNU bash, version 5.0.18(1)-release (x86_64-pc-linux-gnu) > > On the above vesion of bash, the following script will not run the echo > command and print an error. On bash 4.4 it appears to treat the ${!foo} > the same as e

Re: Change in indirect expansion behavior from 4.4 to 5.0

2020-09-30 Thread Chet Ramey
On 9/30/20 12:28 AM, Jason Miller wrote: > Gentoo linux, GNU bash, version 5.0.18(1)-release (x86_64-pc-linux-gnu) > > On the above vesion of bash, the following script will not run the echo > command > and print an error. On bash 4.4 it appears to treat the ${!foo} the same as > expanding an u

execve E2BIG (Argument list too long)

2020-09-30 Thread Michael Green
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/li

Re: execve E2BIG (Argument list too long)

2020-09-30 Thread Ilkka Virta
On Wed, Sep 30, 2020 at 5:53 PM Michael Green wrote: > The included short script when run with the following command results > in execve "E2BIG (Argument list too long) errors". > > * The number of arguments can be tuned down to "seq 1 23694" and it > still occurs, but any lower and it disappears

Re: execve E2BIG (Argument list too long)

2020-09-30 Thread Greg Wooledge
On Wed, Sep 30, 2020 at 09:12:30AM +0200, Michael Green wrote: > seq 1 4 | 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"' 'f

Re: execve E2BIG (Argument list too long)

2020-09-30 Thread Chet Ramey
On 9/30/20 3:12 AM, Michael Green wrote: > Bash Version: 5.0 > Patch Level: 17 > Release Status: release > > Description: > > The included short script when run with the following command results > in execve "E2BIG (Argument list too long) errors". The argument list includes the size of the env

Re: execve E2BIG (Argument list too long)

2020-09-30 Thread Daniel Colascione
On September 30, 2020 8:24:01 AM Ilkka Virta wrote: On Wed, Sep 30, 2020 at 5:53 PM Michael Green wrote: The included short script when run with the following command results in execve "E2BIG (Argument list too long) errors". * The number of arguments can be tuned down to "seq 1 23694" a

Re: execve E2BIG (Argument list too long)

2020-09-30 Thread Andreas Schwab
On Sep 30 2020, Daniel Colascione wrote: > It might be worth asking lkml to lift this restriction You will have bad luck with that. The limit has been introduced for security reasons. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E

Re: Change in indirect expansion behavior from 4.4 to 5.0

2020-09-30 Thread Jason Miller
On Wed, 30 Sep 2020 09:19:34 -0400 Chet Ramey wrote: ... > I explained the reasoning in > > https://lists.gnu.org/archive/html/bug-bash/2016-11/msg00165.html ... The reasoning is 100% sound, but would it make sense to add the old behavior to a compat option? I'm not at all familiar with the dec