Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh handling of non-standard if-evaluations
- X-seq: zsh-users 11147
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: zsh handling of non-standard if-evaluations
- Date: Sat, 27 Jan 2007 23:56:49 +0000
- In-reply-to: Message from Daniel Qarras <dqarras@xxxxxxxxx> of "Sat, 27 Jan 2007 04:59:31 PST." <20070127125931.56756.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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