Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14432
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| 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 09:40 -0400 |
| Message-ID | <mailman.4554.1533130822.1292.bug-bash@gnu.org> (permalink) |
| References | <c1978119-1836-e88d-4889-c54bea4d0559@iki.fi> <20180801121251.efyquoibrsneiqbl@eeg.ccf.org> <b920fff1-e2dd-59b8-f62d-5c982eedd8aa@iki.fi> |
On Wed, Aug 01, 2018 at 04:06:03PM +0300, Ilkka Virta wrote: > Unquoted $* seems well-defined in Bash's reference manual: > > ($*) Expands to the positional parameters, starting from one. When the > expansion is not within double quotes, each positional parameter > expands to a separate word. But not in reality. https://lists.gnu.org/archive/html/bug-bash/2017-06/msg00283.html https://lists.gnu.org/archive/html/bug-bash/2017-09/msg00058.html https://lists.gnu.org/archive/html/bug-bash/2018-01/msg00035.html Unquoted $* or $@ is just a disaster. Don't do it.
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Unquoted array slice ${a[@]:0} expands to just one word if IFS doesn't have a space Greg Wooledge <wooledg@eeg.ccf.org> - 2018-08-01 09:40 -0400
csiph-web