From: Jim Meyering Date: Mon, 5 Nov 2007 11:03:08 +0000 (+0100) Subject: Don't use GNU-sed-specific \< \> operators here, either. X-Git-Tag: v6.9.90~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bf4bb761c4a22e7e4243d1a9347fc0998690d10;p=thirdparty%2Fcoreutils.git Don't use GNU-sed-specific \< \> operators here, either. * m4/include-exclude-prog.m4 (gl_REMOVE_PROG): Use a loop, as below. --- diff --git a/ChangeLog b/ChangeLog index 61ee8c3b90..e9e2892e99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-11-05 Jim Meyering + Don't use GNU-sed-specific \< \> operators here, either. + * m4/include-exclude-prog.m4 (gl_REMOVE_PROG): Use a loop, as below. + Use tighter regexps when performing name substitution. * man/Makefile.am (mapped_name): Add ^ and $$ anchors. diff --git a/m4/include-exclude-prog.m4 b/m4/include-exclude-prog.m4 index e5612c69fd..d0addc7760 100644 --- a/m4/include-exclude-prog.m4 +++ b/m4/include-exclude-prog.m4 @@ -19,7 +19,8 @@ AC_DEFUN([gl_ADD_PROG], # Usage: gl_REMOVE_PROG([prog_list_var_name], [prog_name]) AC_DEFUN([gl_REMOVE_PROG], [{ - $1=`echo "$$1"|sed 's/\<'"$2"'\>//;s/ */ /g;s/^ *//;s/ *$//'` + $1=`for gl_rem_i in $$1; do + test "$gl_rem_i" = "$2" || echo "$gl_rem_i" done | tr '\012' ' '; echo` }]) # Given the name of a variable containing a space-separated list of