Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: read broken in beta21



>What is sh?

I was referring to the Bourne shell.

> The line shall be split into fields (see the definition in 3.1.3) as in
> the shell (see 3.6.5); the first field shall be assigned to the first
> variable var, the second field to the second variable var, etc.  If there
> are fewer var operands specified than there are fields, the leftover
> fields and their intervening separators shall be assigned to the last
                   ^^^^^^^^^^^
> var. If there are fewer fields than vars, the remaining vars shall be set
> to empty strings.

It sounds to me like trailing IFS characters are not *intervening*
separators, and should therefore be removed.

-zefram




Messages sorted by: Reverse Date, Date, Thread, Author