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>
+
+ 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...
-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)=' \