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: Eric Blake
Subject: Re: Request for enhancement: links to 'true' and 'false'
Date: Mon, 22 Apr 2013 06:40:34 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5

On 04/20/2013 11:28 AM, 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.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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