Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
evaluating a condition
- X-seq: zsh-users 2593
- From: Gaspar Bakos <bakos@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: evaluating a condition
- Date: Sun, 12 Sep 1999 20:41:39 +0200 (CEST)
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
Hi,
As a beginner in zsh, I would have a question concerning an 'if'
structure.
I have the following script, and I would like to print the numbers in the
terminal from ${min} to ${max}, if both of them are smaller than 10.
export min=$3;export max=$4;
if (($[min]<10 && $[max]<10)) then
for i in {${min}..${max}}; do echo $i; done
fi
However, this prints the numbers even if ${max}>10
Can someone help?
Gaspar
Messages sorted by:
Reverse Date,
Date,
Thread,
Author