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 excused.
> Quoting expan
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 behav
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
declare