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

Re: zsh handling of non-standard if-evaluations



Daniel Qarras wrote:
> on a system with a couple of proprietary applications I noticed that
> the scripts provided with the applications contain a non-standard
> if-evaluations that seems to work under bash (default shell on those
> systems) but not under zsh. Do you see worth to mimic bash here? The
> offending case is:
> 
> if [ "$VAR" == "VAL" ]
> 
> i.e., a double "==" instead of plain "=". This is with zsh-4.2.6.

That ought to work; can you send some explicit code with it failing?

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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