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