[NTLUG:Discuss] basic Bash question

Lance Simmons lance at lsimmons.net
Tue Aug 3 10:45:47 CDT 2004


* brad angelcyk <bradangelcyk at yahoo.com> [040803 10:37]:
>
> Could you just use test?
> 
> $ test 1 -gt 0
> $ test a -gt 0
> bash: test: a: integer expression expected

Now that you mention it, it _is_ that simple, because that's how I've
known I sometimes didn't have an integer.  I just didn't think to turn
that into a test. :(

Thanks!

-- 
Lance Simmons



More information about the Discuss mailing list