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


Groups > gnu.bash.bug > #14429 > unrolled thread

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

Started bypepa65 <peterkelly@passchier.net>
First post2018-08-01 19:42 +0700
Last post2018-08-01 19:42 +0700
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

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

Frompepa65 <peterkelly@passchier.net>
Date2018-08-01 19:42 +0700
SubjectRe: Unquoted array slice ${a[@]:0} expands to just one word if IFS doesn't have a space
Message-ID<mailman.4545.1533127366.1292.bug-bash@gnu.org>
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

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web