coreutils
[Top][All Lists]
Advanced

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

Re: Request for enhancement: links to 'true' and 'false'


From: Bernhard Voelker
Subject: Re: Request for enhancement: links to 'true' and 'false'
Date: Mon, 22 Apr 2013 21:11:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

On 04/22/2013 08:34 PM, Bob Proulx wrote:
> Thanks for that correction.  With that in mind then am I justified in
> sticking with my old traditional expr use?  It works everywhere!  :-)

What about using 'test'?

test $VAR1 -gt $VAR2 && echo greater || echo smaller/equal

Both, the shell internal test function and coreutils' test program support it.

Have a nice day,
Berny



reply via email to

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