Re: [RFH] zsh shell function portability issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ralf Wildenhues wrote:
> * Paolo Bonzini wrote on Mon, Oct 13, 2008 at 11:59:22AM CEST:
>> You will remember the shell function portability issue in zsh...
> 
> Yes; sigh.
>  
>> Do you think that these functions: [...]
>> are portable?  (Yeah, the code is totally unreadable).
> 
> Pretty likely not:
> 
> $ zsh --version
> zsh 4.2.3 (powerpc-apple-darwin8.0)
> $ zsh
> $ f () { ( exit 1); echo $?; }; f
> 0
> $ f () { ( exit 1) && echo bad; }; f
> bad
> $ f () { { ( exit 1); } && echo bad; }; f
> bad

Hmmm... however, does the shell pass the "better shell" test?

In other words, maybe (hopefully) this is moot after all?

(I'm now done with all the 22 (!) preliminary patches...)

Paolo


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux