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


Groups > gnu.bash.bug > #14429

Re: Unquoted array slice ${a[@]:0} expands to just one word if IFS doesn't have a space

From pepa65 <peterkelly@passchier.net>
Newsgroups gnu.bash.bug
Subject Re: Unquoted array slice ${a[@]:0} expands to just one word if IFS doesn't have a space
Date 2018-08-01 19:42 +0700
Message-ID <mailman.4545.1533127366.1292.bug-bash@gnu.org> (permalink)
References <c1978119-1836-e88d-4889-c54bea4d0559@iki.fi> <20180801121251.efyquoibrsneiqbl@eeg.ccf.org>

Show all headers | View raw


On 08/01/2018 07:12 PM, Greg Wooledge wrote:
> This just reinforces the point that unquoted $@ or $* (or the array
> equivalent) is a bug in the script.  It gives unpredictable results.

If the results are unpredictable, isn't that a bug that wants fixing?
That would be a very noble goal, should it not be possible?

Peter

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


Thread

Re: Unquoted array slice ${a[@]:0} expands to just one word if IFS doesn't have a space pepa65 <peterkelly@passchier.net> - 2018-08-01 19:42 +0700

csiph-web