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

Re: Bug Report: Env Vars and shell functions



> They were not really cosmetic.  Had you applied these you would not have
> received this.  These SEGV's are all caused by DPUTS, since it seems that
> you did not applied the patch which replaces X to Y in DPUTS in zsh.h line
> 1314.

Damn.  Sorry, then.  It was late.

> > On a related note, should the following not restore IFS?
> > 
> > sun4% IFS=@ set a@b@c@d; echo $IFS 
> > @
> 
> Here is what POSIX says:
> 
>      (2)  Variable assignments specified with special built-in utilities
>           shall remain in effect after the built-in completes; this shall
>           not be the case with a regular built-in or other utility.
> [ and ten other reasons why it wouldn't work...]

Aha.  There isn't a copy of the POSIX standard on the net, is there?  Then I
could stop identifying spurious non-bugs.  But IFS=$OLDIFS is so *ugly*.

> I'm writing these because these differences between zsh and POSIX are
> probably the most important ones.  Other than that zsh is now mostly POSIX
> conformant (POSIX does not allow the MAGICEQUALS behaviour of the typeset
> family but all other shells (bash, ksh93 and pdksh) do that unles
> POSIXLY_CORRECT is defined).

Those are pretty useful to know.  Thanks.

A




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