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

Re: IFS contains Meta - why?



>>     ifs         = ztrdup(" \t\n  ");
>>     ifs[3]      = Meta;
>
>1) Why does a space (0x20) appear both at the start and end of IFS?
>2) Why is Meta in there (contrary to the man page)?

The combination {Meta, ' '} is used to represent NUL.  IFS now, by
default, consists of space, tab, newline and NUL.

>                                                     The sort command
>    under HPUX 10.01 stops processing when it runs across non-ascii
>    characters, so I see nothing after IFS when I run "set | sort".

It can't handle the NUL, which is hardly surprising really.

-zefram




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