mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-24 02:17:22 +08:00
Don't use GNU-sed-specific \< \> operators here, either.
* m4/include-exclude-prog.m4 (gl_REMOVE_PROG): Use a loop, as below.
This commit is contained in:
parent
d471effd85
commit
3bf4bb761c
@ -1,5 +1,8 @@
|
||||
2007-11-05 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
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.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user