]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
The empty regexp cannot be portably used in egrep's alternation.
authorAkim Demaille <akim@epita.fr>
Wed, 1 Mar 2000 17:01:29 +0000 (17:01 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 1 Mar 2000 17:01:29 +0000 (17:01 +0000)
For instance with Digital Unix v5.0:
   > echo "foo"  | egrep -e "^(|foo|bar)$"
   > echo "|foo" | egrep -e "^(|foo|bar)$"
   |foo
   > echo "|bar" | egrep -e "^(|foo|bar)$"
   > echo "bar"  | egrep -e "^(|foo|bar)$"
   bar
Reported by Nicolas Joly.

* src/actest.m4 (AC_ENV_SAVE): s/(|EXTRA_|PRE_)/(EXTRA_|PRE_)?/.

ChangeLog
tests/actest.m4

index 793be1a6fb7d6f1eccd4d090939572f2cd88ceba..694d43c7dcd5271249400cad1490b7551d453b9b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2000-03-01  Akim Demaille  <akim@epita.fr>
+
+       The empty regexp cannot be portably used in egrep's alternation.
+       For instance with Digital Unix v5.0:
+          > echo "foo"  | egrep -e "^(|foo|bar)$"
+          > echo "|foo" | egrep -e "^(|foo|bar)$"
+          |foo
+          > echo "|bar" | egrep -e "^(|foo|bar)$"
+          > echo "bar"  | egrep -e "^(|foo|bar)$"
+          bar
+       Reported by Nicolas Joly.
+
+       * src/actest.m4 (AC_ENV_SAVE): s/(|EXTRA_|PRE_)/(EXTRA_|PRE_)?/.
+
 2000-03-01  Akim Demaille  <akim@epita.fr>
 
        * acspecific.m4: Removed a few addresses, the map is...
index dc63f14849617055f24cde58d47af54df6f6e7bd..6e1a03a967046864cd0a197e899165caa168707e 100644 (file)
@@ -26,7 +26,7 @@ AC_DEFUN(AC_ENV_SAVE,
   -e '^(LIBS|LIBOBJS|LDFLAGS)=' \
   -e '^INSTALL(_(DATA|PROGRAM|SCRIPT))?=' \
   -e '^(CYGWIN|ISC|MINGW32|MINIX|EMXOS2|EXEEXT|OBJEXT)=' \
-  -e '^(X_(CFLAGS|(|EXTRA_|PRE_)LIBS)|x_(includes|libraries)|have_x)=' \
+  -e '^(X_(CFLAGS|(EXTRA_|PRE_)?LIBS)|x_(includes|libraries)|have_x)=' \
   -e '^(host|build|target)(_(alias|cpu|vendor|os))?=' \
   -e '^(cross_compiling)=' \
   -e '^(interpval)=' \