Re: [BUG] With null IFS, ${1+$*}, ${var-$*}, etc. don't generate fields

2017-02-18 Thread Chet Ramey
On 2/18/17 8:35 PM, Martijn Dekker wrote: > When IFS is null, unquoted $* within an unquoted substitution (e.g. > ${1+$*} or ${unset_var-$*}) joins the PPs together into one field, as if > either "$*" or the whole substitution were quoted. > > POSIX says the unquoted substitution is supposed to

[BUG] With null IFS, ${1+$*}, ${var-$*}, etc. don't generate fields

2017-02-18 Thread Martijn Dekker
When IFS is null, unquoted $* within an unquoted substitution (e.g. ${1+$*} or ${unset_var-$*}) joins the PPs together into one field, as if either "$*" or the whole substitution were quoted. POSIX says the unquoted substitution is supposed to generate one field for each positional parameter,