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


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

Re: Assignment of $* to a var removes spaces on unset IFS.

Started byEduardo A. Bustamante López <dualbus@gmail.com>
First post2018-08-13 19:09 -0700
Last post2018-08-13 19:09 -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: Assignment of $* to a var removes spaces on unset IFS. Eduardo A. Bustamante López <dualbus@gmail.com> - 2018-08-13 19:09 -0700

#14478 — Re: Assignment of $* to a var removes spaces on unset IFS.

FromEduardo A. Bustamante López <dualbus@gmail.com>
Date2018-08-13 19:09 -0700
SubjectRe: Assignment of $* to a var removes spaces on unset IFS.
Message-ID<mailman.5080.1534212601.1292.bug-bash@gnu.org>
On Mon, Aug 13, 2018 at 09:36:23PM -0400, Bize Ma wrote:
(...)
> Please, do not waste our time in incorrect claims.
> 
> Do your homework and test !
(...)

Did you test Bash 5.0? Because that's where the current bug fixes are going to.
I don't see Chet releasing a new version of 4.4 to fix something that's already
fixed there.

dualbus@ubuntu:~/src/gnu/bash$ cat /tmp/script 
echo $BASH_VERSION
set -- "  foo  "    "  bar  baz  "  "  quux  "
unset IFS
a=$*
b="$*"
printf '[%s]' "$a" "$b"; echo

dualbus@ubuntu:~/src/gnu/bash$ bash /tmp/script 
4.4.19(1)-release
[foo bar baz quux][  foo     bar  baz     quux  ]

dualbus@ubuntu:~/src/gnu/bash$ ./bash /tmp/script 
5.0.0(1)-alpha
[  foo     bar  baz     quux  ][  foo     bar  baz     quux  ]

Please read this thread:

* http://lists.nongnu.org/archive/html/bug-bash/2017-09/msg00058.html

[toc] | [standalone]


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


csiph-web