From: Akim Demaille Date: Wed, 1 Mar 2000 17:01:29 +0000 (+0000) Subject: The empty regexp cannot be portably used in egrep's alternation. X-Git-Tag: autoconf-2.50~1105 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=7a628f50927b678b7520478abba6a44f3794b44e;p=thirdparty%2Fautoconf.git 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_)?/. --- diff --git a/ChangeLog b/ChangeLog index 793be1a6f..694d43c7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2000-03-01 Akim Demaille + + 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 * acspecific.m4: Removed a few addresses, the map is... diff --git a/tests/actest.m4 b/tests/actest.m4 index dc63f1484..6e1a03a96 100644 --- a/tests/actest.m4 +++ b/tests/actest.m4 @@ -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)=' \