[Top][All Lists]

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

Re: process result code in if

From: Gary V. Vaughan
Subject: Re: process result code in if
Date: Fri, 7 Jun 2013 09:25:09 +0700

On 7 Jun 2013, at 08:41, Miles Bader <address@hidden> wrote:
> Wait, why can't you use "test $x -gt 0"...?

You mean "test 0 -lt $x", otherwise if x starts with a hyphen (e.g -1) things 
will go awry!

Gary V. Vaughan (gary AT gnu DOT org)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]