On 6/20/17 1:33 AM, Eduardo A. Bustamante López wrote: > On Tue, Jun 20, 2017 at 01:13:07AM +0100, Kevin Brodsky wrote: > [...] >> When IFS is unset, unquoted $* undergoes word splitting as if IFS=' ', >> and not the expected IFS=$' \t\n'. All the other unquoted mass >> This is a regression that appeared in 4.3 and is still present on devel > [...] > > AFAICT, the following patch fixes this.
It's on the right track, but you still need to differentiate between the cases where IFS is unset (in which case the positional parameters need to be separated into individual words, and those individual words need to be split on $' \t\n') and where IFS is null (in which case split_on_spaces is used as an internal flag to satisfy the Posix requirement that $* expand into separate words no matter what IFS is set to). Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/