Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15982

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

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: builtin echo vs /bin/echo appears to affect variable scope
Date 2020-03-02 14:58 -0500
Message-ID <mailman.1924.1583179135.2412.bug-bash@gnu.org> (permalink)
References <CAAHpriP0ZosuQ7=5_F294UxzLb5ynbECCeqFoQK8Ex_GDkFGgw@mail.gmail.com> <20200302195823.GM845@eeg.ccf.org>

Show all headers | View raw


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.

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: builtin echo vs /bin/echo appears to affect variable scope Greg Wooledge <wooledg@eeg.ccf.org> - 2020-03-02 14:58 -0500

csiph-web