D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Long bash scripts - buglet

 

On Wednesday 26 January 2005 8:04 am, Darke, Clive wrote:
I just spotted a small problem, [ $jump < 40 ] does a textual comparison,

I know, I found that later.

I now use

if [ $jump -lt 40 ]
then

Alternatively use the comparison operator lt.

I was meaning to put that correction into the archive, but it's done now.

-- 

Neil Williams
=============
http://www.dcglug.org.uk/
http://www.nosoftwarepatents.com/
http://sourceforge.net/projects/isbnsearch/
http://www.neil.williamsleesmill.me.uk/
http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3

Attachment: pgp00077.pgp
Description: PGP signature