Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh handling of non-standard if-evaluations
- X-seq: zsh-users 11148
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Daniel Qarras <dqarras@xxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: zsh handling of non-standard if-evaluations
- Date: Sun, 28 Jan 2007 09:59:38 -0800
- In-reply-to: <20070127125931.56756.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20070127125931.56756.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Jan 27, 4:59am, Daniel Qarras wrote:
}
} 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" ]
My guess is:
schaefer[501] [ "$VAR" == "VAL" ]; echo $?
zsh: = not found
schaefer[502] setopt no_equals
schaefer[503] [ "$VAR" == "VAL" ]; echo $?
1
If you're going to run bash scripts through zsh, you need to run them
with "emulate sh" in effect.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author