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


Groups > gnu.bash.bug > #16622

Re: No word splitting for assignment-like expressions in compound assignment

From Andreas Schwab <schwab@linux-m68k.org>
Newsgroups gnu.bash.bug
Subject Re: No word splitting for assignment-like expressions in compound assignment
Date 2020-07-27 10:02 +0200
Message-ID <mailman.131.1595836940.2739.bug-bash@gnu.org> (permalink)
References <87o8o1zfpn.fsf@hobgoblin.ariadne.com> <F420E583-E5D4-48BB-98E3-044C700BA07A@larryv.me> <87pn8hs7wd.fsf@igel.home>

Show all headers | View raw


On Jul 27 2020, Lawrence Velázquez wrote:

> If word splitting were not performed in compound assignments, this...
>
>     foo=(a b c)
>
> ...would not work.

This is not true.  Field splitting is only relevant for words generated
by other expansions, not for literal tokens.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

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


Thread

Re: No word splitting for assignment-like expressions in compound assignment Andreas Schwab <schwab@linux-m68k.org> - 2020-07-27 10:02 +0200

csiph-web