Re: Use of double parentheses

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

 



On 08/01/11 08:21, Eric Blake wrote:
>>>>    &&  ( (unset $as_var) || exit 1)>/dev/null 2>&1&&  unset $as_var || :
>>> ...
>>> It's not a bug in pdksh - POSIX was recently reworded to allow (( to
>>> introduce arithmetic parsing on any shell that wants to provide it as an extension.

> http://austingroupbugs.net/view.php?id=217

Thanks for mentioning that; I didn't know it.  However,
from that URL it still appears that pdksh is buggy.
The new rule says that '((FOO))' is special if FOO
is a syntactically valid arithmetic expression.
But in the above example, the expression '((unset $asvar) ...)'
surely would not be syntactically valid to pdksh,
and therefore '((' should not be special there.

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux