Shell exits after process substitution when using DEBUG trap with extdebug

2020-08-03 Thread Jonathan Rascher
$ bash --version GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu) $ uname -a Linux penguin 5.4.40-04224-g891a6cce2d44 #1 SMP PREEMPT Tue Jun 23 20:21:29 PDT 2020 x86_64 GNU/Linux (This is a Pixelbook running the default Crostini Linux VM under Chrome OS 84.0.4147.110. I can reproduce the

Re: Should $(fg) resume a stopped job?

2020-08-03 Thread Chet Ramey
On 7/31/20 12:43 PM, Oğuz wrote: > Maybe a minor bug, but certainly a choice. The command substitution keeps > the jobs list around, since the subshell is supposed to be an exact copy > of > the parent, and it's useful to get the output of `jobs' out of command > substitution. >

Re: bash -n: stack overflow in extract_delimited_string()

2020-08-03 Thread Jakub Wilk
* Chet Ramey , 2020-08-03, 09:15: On 8/3/20 5:30 AM, Jakub Wilk wrote: Bash Version: 5.0 Patch Level: 18 Release Status: release bash crashes with stack overflow when checking syntax of this crafted script:   $ ulimit -s   8192   $ printf 'x[$(($(fi)))`\n%05d\n][`]\n' | tr 0 '(' | bash -

Re: bash -n: stack overflow in extract_delimited_string()

2020-08-03 Thread Chet Ramey
On 8/3/20 5:30 AM, Jakub Wilk wrote: > Bash Version: 5.0 > Patch Level: 18 > Release Status: release > > bash crashes with stack overflow when checking syntax of this crafted script: > >   $ ulimit -s >   8192 > >   $ printf 'x[$(($(fi)))`\n%05d\n][`]\n' | tr 0 '(' | bash -n >   bash: comma

bash -n: stack overflow in extract_delimited_string()

2020-08-03 Thread Jakub Wilk
Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux debian 4.19.0-9-cloud-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.0 Patch Level: 18 Release