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


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

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

Started byChet Ramey <chet.ramey@case.edu>
First post2018-08-02 11:21 -0400
Last post2018-08-02 11:21 -0400
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 Chet Ramey <chet.ramey@case.edu> - 2018-08-02 11:21 -0400

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

FromChet Ramey <chet.ramey@case.edu>
Date2018-08-02 11:21 -0400
SubjectRe: Unquoted array slice ${a[@]:0} expands to just one word if IFS doesn't have a space
Message-ID<mailman.4616.1533223296.1292.bug-bash@gnu.org>
On 8/1/18 7:43 AM, Ilkka Virta wrote:
> On both Bash 4.4.12(1)-release and 5.0.0(1)-alpha, a subarray slice like
> ${a[@]:0} expands to just one word if unquoted (and if IFS doesn't
> contain a space):

Thanks for the report. I agree that ${a[@]:sub} should behave the same as
${@:sub}.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

[toc] | [standalone]


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


csiph-web