Re: builtin echo vs /bin/echo appears to affect variable scope
From:
Greg Wooledge
Subject:
Re: builtin echo vs /bin/echo appears to affect variable scope
Date:
Mon, 2 Mar 2020 14:58:23 -0500
User-agent:
Mutt/1.10.1 (2018-07-13)
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.