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

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Andreas Schwab <schwab@linux-m68k.org>
Newsgroups gnu.bash.bug
Subject Re: No word splitting for assignment-like expressions in compound assignment
Date Mon, 27 Jul 2020 10:02:10 +0200
Lines 18
Approved bug-bash@gnu.org
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>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace usenet.stanford.edu 1595836941 7034 209.51.188.17 (27 Jul 2020 08:02:21 GMT)
X-Complaints-To action@cs.stanford.edu
Cc "Dale R. Worley" <worley@alum.mit.edu>, Alexey Izbyshev <izbyshev@ispras.ru>, bug-bash@gnu.org
To Lawrence Velázquez <vq@larryv.me>
Envelope-to bug-bash@gnu.org
X-Virus-Scanned amavisd-new at mnet-online.de
X-Auth-Info 9F/t7gLYgIOFfdFV06BrrdGV9jkrbH3jLIuu/CK9ms2PtpY42YorP3xhDCrQoZbF
X-Yow Why am I in this ROOM in DOWNTOWN PHILADELPHIA?
In-Reply-To <F420E583-E5D4-48BB-98E3-044C700BA07A@larryv.me> ("Lawrence Velázquez"'s message of "Mon, 27 Jul 2020 03:06:22 -0400")
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux)
Received-SPF pass client-ip=2001:a60:0:28:0:1:25:1; envelope-from=whitebox@nefkom.net; helo=mail-out.m-online.net
X-detected-operating-system by eggs.gnu.org: First seen = 2020/07/27 03:47:55
X-ACL-Warn Detected OS = Linux 3.11 and newer
X-Spam_score_int -15
X-Spam_score -1.6
X-Spam_bar -
X-Spam_report (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action no action
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 <87pn8hs7wd.fsf@igel.home>
X-Mailman-Original-References <87o8o1zfpn.fsf@hobgoblin.ariadne.com> <F420E583-E5D4-48BB-98E3-044C700BA07A@larryv.me>
Xref csiph.com gnu.bash.bug:16622

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