zsh-users
 help / color / mirror / code / Atom feed
* evaluating a condition
@ 1999-09-12 18:41 Gaspar Bakos
  1999-09-12 23:51 ` Bart Schaefer
  1999-09-13  7:20 ` Johannes Mähner
  0 siblings, 2 replies; 5+ messages in thread
From: Gaspar Bakos @ 1999-09-12 18:41 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-09-13 17:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-12 18:41 evaluating a condition Gaspar Bakos
1999-09-12 23:51 ` Bart Schaefer
1999-09-13 16:35   ` Sweth Chandramouli
1999-09-13 17:22     ` Bart Schaefer
1999-09-13  7:20 ` Johannes Mähner

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).