zsh-workers
 help / color / mirror / code / Atom feed
* IFS contains Meta - why?
@ 1996-06-21 19:47 J.D. Laub
  1996-06-22  0:08 ` Zefram
  0 siblings, 1 reply; 2+ messages in thread
From: J.D. Laub @ 1996-06-21 19:47 UTC (permalink / raw)
  To: zsh-workers

% rcsdiff -r2.9 -r2.10 init.c,v
2c2
<  * $Id: init.c,v 2.8 1996/05/02 23:01:04 [...]
---
>  * $Id: init.c,v 2.9 1996/05/02 23:01:04 [...]
[...]
603c606,607
<     ifs         = ztrdup(" \t\n");
---
>     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 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".
-- 
J.D. Laub (Laubster) HBOC/CliniCom|"I think you're very, very, very, very, very,
jdl@clinicom.com     Boulder,CO   |very, very, very, very, ..." - Flying Lizards



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: IFS contains Meta - why?
  1996-06-21 19:47 IFS contains Meta - why? J.D. Laub
@ 1996-06-22  0:08 ` Zefram
  0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 1996-06-22  0:08 UTC (permalink / raw)
  To: J.D. Laub; +Cc: zsh-workers

>>     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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-06-22  0:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-21 19:47 IFS contains Meta - why? J.D. Laub
1996-06-22  0:08 ` Zefram

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).