[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: simple bash loop problem ...



On Mon, 30 Jun 2003 05:30:14 +0200, Sebastian Kapfer wrote:

> n=1
> while [ $n \< 9 ]; do
> 	echo $n
> 	n=$((n+=1))
> done
> 
> Note the backslash. Plain < is for redirection. Interesting to see that I
> never ran into this thing, because I'm used to != from C++ :-)

Of course \< is still wrong, should be -lt

-- 
Best Regards,   |   Hi! I'm a .signature virus. Copy me into
 Sebastian      |   your ~/.signature to help me spread!



Reply to: