autoconf
[Top][All Lists]
Advanced

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

Re: [RFH] zsh shell function portability issue


From: Paolo Bonzini
Subject: Re: [RFH] zsh shell function portability issue
Date: Wed, 15 Oct 2008 16:12:26 +0200
User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]