[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Request for enhancement: links to 'true' and 'false'
From: |
Bob Proulx |
Subject: |
Re: Request for enhancement: links to 'true' and 'false' |
Date: |
Mon, 22 Apr 2013 12:34:53 -0600 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Eric Blake wrote:
> Bob Proulx wrote:
> > But even expr is now obsoleted by built in shell math. Use ((...)) to
> > perform the math in the shell with no external program calls.
>
> In bash, yes, but not portable. $(()) is standardized by POSIX, but
> (()) is not, and has some surprising corner cases because it is not
> standardized.
Thanks for that correction. With that in mind then am I justified in
sticking with my old traditional expr use? It works everywhere! :-)
Bob