[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Document that $((expression)) is not portable.
From: |
Benoit Sigoure |
Subject: |
[PATCH] Document that $((expression)) is not portable. |
Date: |
Sun, 11 Nov 2007 23:08:39 +0100 |
* doc/autoconf.texi (Shell Substitutions): Here.
Signed-off-by: Benoit Sigoure <address@hidden>
---
I dropped the plural form, as suggested by Ralph. For some reason, I tend to
always use `arithmetic expansions' (plural). Weird.
ChangeLog | 5 +++++
doc/autoconf.texi | 8 ++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index aaf50a8..8605f1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-11 Benoit Sigoure <address@hidden>
+
+ Document that $((expression)) is not portable.
+ * doc/autoconf.texi (Shell Substitutions): Here.
+
2007-11-10 Jim Meyering <address@hidden>
Generate package.m4 in build-dir, not srcdir.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 421056e..acc80cf 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
+
address@hidden $((@var{expression}))
address@hidden $((@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
--
1.5.3.5.654.gdd5ec