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

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: builtin echo vs /bin/echo appears to affect variable scope
Date Mon, 2 Mar 2020 14:58:23 -0500
Lines 7
Approved bug-bash@gnu.org
Message-ID <mailman.1924.1583179135.2412.bug-bash@gnu.org> (permalink)
References <CAAHpriP0ZosuQ7=5_F294UxzLb5ynbECCeqFoQK8Ex_GDkFGgw@mail.gmail.com> <20200302195823.GM845@eeg.ccf.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1583179135 9015 209.51.188.17 (2 Mar 2020 19:58:55 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To Keith Thompson <Keith.S.Thompson@gmail.com>
Envelope-to bug-bash@gnu.org
Mail-Followup-To Keith Thompson <Keith.S.Thompson@gmail.com>, bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <CAAHpriP0ZosuQ7=5_F294UxzLb5ynbECCeqFoQK8Ex_GDkFGgw@mail.gmail.com>
User-Agent Mutt/1.10.1 (2018-07-13)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 139.137.100.1
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200302195823.GM845@eeg.ccf.org>
X-Mailman-Original-References <CAAHpriP0ZosuQ7=5_F294UxzLb5ynbECCeqFoQK8Ex_GDkFGgw@mail.gmail.com>
Xref csiph.com gnu.bash.bug:15982

Show key headers only | 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