On 6/23/17 11:27 AM, Robert Elz wrote:
> Date: Thu, 22 Jun 2017 07:51:12 -0400
> From: Greg Wooledge <[email protected]>
> Message-ID: <[email protected]>
>
>
> | $ dash
> | $ set -- a b
> | $ IFS=
> | $ args $*
> | 1 args: <ab>
>
> That is simply broken. Always has been, whatever mistakes were
> in the wording posix used to use to try and explain how it works.
The historical Bourne shell produces <a b>. (Of course, the historical
Bourne shell didn't allow IFS to be unset, either, so it's not a valid
reference implementation.) Some current shells, like posh, do the same
thing.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/