mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-30 11:01:45 +08:00
* doc/autoconf.texi (Parentheses): Mention problem with (( in
shells.
This commit is contained in:
parent
039348cde8
commit
6ca599819c
@ -1,3 +1,8 @@
|
||||
2007-02-08 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* doc/autoconf.texi (Parentheses): Mention problem with (( in
|
||||
shells.
|
||||
|
||||
2007-02-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
and Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
|
@ -11896,9 +11896,13 @@ for the rationale.
|
||||
@section Parentheses in Shell Scripts
|
||||
@cindex Shell parentheses
|
||||
|
||||
Beware of two opening parentheses in a row, as some shell
|
||||
implementations mishandle them. For example, @samp{pdksh} 5.2.14
|
||||
misparses the following code:
|
||||
Beware of two opening parentheses in a row, as many shell
|
||||
implementations treat them specially. Posix requires that the command
|
||||
@samp{((cat))} must behave like @samp{(cat)}, but many shells, including
|
||||
Bash and the Korn shell, treat @samp{((cat))} as an arithmetic
|
||||
expression equivalent to @samp{let "cat"}, and may or may not report an
|
||||
error when they detect that @samp{cat} is not a number. As another
|
||||
example, @samp{pdksh} 5.2.14 misparses the following code:
|
||||
|
||||
@example
|
||||
if ((true) || false); then
|
||||
|
Loading…
Reference in New Issue
Block a user