]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* doc/autoconf.texi (Limitations of Usual Tools) <expr>:
authorAkim Demaille <akim@epita.fr>
Thu, 16 Nov 2000 16:30:39 +0000 (16:30 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 16 Nov 2000 16:30:39 +0000 (16:30 +0000)
expr 'a' : '(b)'.
From Paul Eggert.

ChangeLog
doc/autoconf.texi
tests/Makefile.in

index fe27f19f7ac8ff3504bfec7153ded7620c49bcc7..1f46366d4fd1588e3471bba98f03e02e36f332fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-11-16  Akim Demaille  <akim@epita.fr>
+
+       * doc/autoconf.texi (Limitations of Usual Tools) <expr>:
+       expr 'a' : '\(b\)'.
+       From Paul Eggert.
+
 2000-11-16  Akim Demaille  <akim@epita.fr>
 
        Reorder the test suite so that low level features are tested
index 5d1237303b2d6fc78b37a28da9d7618cf53db29a..42accd2621ead7baf0651c73b3f65fe0623091dc 100644 (file)
@@ -5851,6 +5851,12 @@ Don't use @code{length}, @code{substr}, @code{match} and @code{index}.
 Don't use @samp{\?}, @samp{\+} and @samp{\|} in patterns, they are
 not supported on Solaris.
 
+The @sc{posix}.2-1996 standard is ambiguous as to whether @samp{expr 'a'
+: '\(b\)'} outputs @samp{0} or the empty string.  In practice, it
+outputs the empty string on most platforms, but portable scripts should
+not assume this.  For instance, the @sc{qnx} 4.2.5 native @command{expr}
+returns @samp{0}.
+
 Older @command{expr} implementations (e.g. SunOS 4 @command{expr} and
 Solaris 8 @command{/usr/ucb/expr}) have a silly length limit that causes
 @command{expr} to fail if the matched substring is longer than 120
index 0f03f128027977dabfbde4f30018d885781157a6..036c9c2f772502d682aa5068c1ae11e6c8230cb3 100644 (file)
@@ -66,7 +66,7 @@ standards_texi = @standards_texi@
 
 AUTOMAKE_OPTIONS = gnits
 
-SUITE = suite.at         m4sugar.at m4sh.at         base.at tools.at compile.at semantics.at torture.at syntax.at update.at
+SUITE = suite.at         m4sugar.at m4sh.at         base.at tools.at torture.at compile.at semantics.at syntax.at update.at
 
 
 # We don't actually distribute the testsuite, since one only