On Fri, 2008-03-28 at 19:23 +0000, Adam D. Barratt wrote: > On Fri, 2008-03-28 at 11:59 -0700, Russ Allbery wrote: > > "Adam D. Barratt" <[EMAIL PROTECTED]> writes: > > > > > As far as I can see, it *is* in POSIX, which is what persuaded Herbert > > > to (albeit slowly) add it to dash. > > > > Oh! Then the comment now makes sense to me, and by all means we should > > remove this check. Thank you very much for this; I hadn't realized that > > was a standard feature. > > It wasn't. Having just checked, SUS2 only requires $(($var+1)); $((var > +1)) is an SUS3 addition.
In fact, having found a copy of the older SUSv3 editions, it's even more recent. SUSv3 2003 (i.e. IEEE 1003.1-2003) does not contain the requirement for $(($var)) and $((var)) to be equivalent; that was added in the 2004 revision. As policy refers to the latter, however, that shouldn't be a problem. Regards, Adam -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]