diff options
author | Jim Meyering <meyering@redhat.com> | 2007-11-05 12:03:08 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-11-05 12:08:27 +0100 |
commit | 3bf4bb761c4a22e7e4243d1a9347fc0998690d10 (patch) | |
tree | c8111c8de7274b96a272f50a31a8c1e8fd7369a7 /m4 | |
parent | d471effd85668a4704baa2d12f33e125ea429eea (diff) | |
download | coreutils-3bf4bb761c4a22e7e4243d1a9347fc0998690d10.tar.xz |
Don't use GNU-sed-specific \< \> operators here, either.
* m4/include-exclude-prog.m4 (gl_REMOVE_PROG): Use a loop, as below.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/include-exclude-prog.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/include-exclude-prog.m4 b/m4/include-exclude-prog.m4 index e5612c69f..d0addc776 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 |