From: Benoit Sigoure Date: Sun, 11 Nov 2007 17:41:58 +0000 (+0100) Subject: Document that $((expression)) is not portable. X-Git-Tag: v2.62~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d8cbe20d4ddfa4a1f631fc2615625d5b60294bc;p=thirdparty%2Fautoconf.git Document that $((expression)) is not portable. * doc/autoconf.texi (Shell Substitutions): Here. Signed-off-by: Benoit Sigoure --- diff --git a/ChangeLog b/ChangeLog index 69e6990f..d8c5b940 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-11 Benoit Sigoure + + Document that $((expression)) is not portable. + * doc/autoconf.texi (Shell Substitutions): Here. + 2007-11-10 Ralf Wildenhues Ignore configure --help* errors due to LINENO-impaired shells. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 421056e0..acc80cf4 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -13061,6 +13061,14 @@ mishandle them. For example, Bash 3.1, @samp{ksh88}, @command{pdksh} echo $(case x in x) echo hello;; esac) @end example + +@item $((@var{expression})) +@cindex $((@var{expression})) +Arithmetic expansion is not portable as some shells (most +notably Solaris 10 @command{/bin/sh}) don't support it. + + + @item ^ @cindex ^ quoting Always quote @samp{^}, otherwise traditional shells such as