[Top][All Lists]

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

Re: process result code in if

From: Miles Bader
Subject: Re: process result code in if
Date: Fri, 07 Jun 2013 15:46:44 +0900

"A.P. Horst" <address@hidden> writes:
> I ended up using this:
> if ! test $var -gt 0 > /dev/null 2>&1; then

Incidentally, test should never produce any output on stdout, so you
can just use "2>/dev/null" instead of "> /dev/null 2>&1"... :]


P.S.  All information contained in the above letter is false,
      for reasons of military security.

reply via email to

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