Different history expansion behaivor: true `# # !xxx` vs. true `# !xxx`

2020-03-02 Thread Clark Wang via Bug reports for the GNU Bourne Again SHell
This is from stackoverflow ( https://stackoverflow.com/questions/60166019/ ) and it looks like a bug: $ bash --version GNU bash, version 5.0.7(3)-release (x86_64-pc-linux-gnu) Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

Re: builtin echo vs /bin/echo appears to affect variable scope

2020-03-02 Thread Chet Ramey
On 3/2/20 2:54 PM, Keith Thompson wrote: > From: kst > To: bug-bash@gnu.org > Subject: echo vs /bin/echo appears to affect variable scope > > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -g -O2 -Wno-pare

Re: builtin echo vs /bin/echo appears to affect variable scope

2020-03-02 Thread Greg Wooledge
On Mon, Mar 02, 2020 at 11:54:24AM -0800, Keith Thompson wrote: > /bin/echo hello \ > > BASH_BUG_TEST_$((i++))_$word The redirection happens in the subshell that was created to run the external command.

builtin echo vs /bin/echo appears to affect variable scope

2020-03-02 Thread Keith Thompson
From: kst To: bug-bash@gnu.org Subject: echo vs /bin/echo appears to affect variable scope Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux bomb20 4.1