Re: extra field in $* expansion when non-whitespace character in IFS

2017-04-10 Thread Chet Ramey
On 4/9/17 7:35 PM, Grisha Levit wrote: > In most cases, removing a non-whitespace IFS character "delimits" a field > in the sense that it terminates it, so the presence of such a character at > the end of a field does not change its expansion: > > $ IFS=X > $ set -- Y; printf '<%s>' $* > >

extra field in $* expansion when non-whitespace character in IFS

2017-04-09 Thread Grisha Levit
In most cases, removing a non-whitespace IFS character "delimits" a field in the sense that it terminates it, so the presence of such a character at the end of a field does not change its expansion: $ IFS=X $ set -- Y; printf '<%s>' $* $ set -- YX; IFS=X; printf '<%s>' $* However, whe