Re: Spaces trimmed from $* when assigned while IFS is unset [was: Unexpected word splitting on $* ...]

2017-09-27 Thread Clint Hepner
On Wed, Sep 27, 2017 at 9:10 AM, Martijn Dekker wrote: > Op 27-09-17 om 14:44 schreef Greg Wooledge: > > I'm just going to chalk this up as yet another example of unquoted $* > > or $@ being Completely Wrong. > > Nonsense. This is a bug in bash and it should be fixed, not

Re: Spaces trimmed from $* when assigned while IFS is unset [was: Unexpected word splitting on $* ...]

2017-09-27 Thread Martijn Dekker
Op 27-09-17 om 14:44 schreef Greg Wooledge: > I'm just going to chalk this up as yet another example of unquoted $* > or $@ being Completely Wrong. Nonsense. This is a bug in bash and it should be fixed, not excused. Quoting expansions should never be necessary for assignments. This strange

Re: Spaces trimmed from $* when assigned while IFS is unset [was: Unexpected word splitting on $* ...]

2017-09-27 Thread Greg Wooledge
On Wed, Sep 27, 2017 at 05:50:16AM +0200, Martijn Dekker wrote: > Test script: > > set " abc " " def ghi " "jkl " > unset -v IFS var > var=${var-$*}/${var-$*} > printf '[%s]\n' "$var" wooledg:~$ set " abc " " def ghi " "jkl " wooledg:~$ unset IFS wooledg:~$ var="$*"; declare -p var