From: Andreas Schwab Date: Thu, 15 Nov 2007 13:06:12 +0000 (+0100) Subject: * m4/include-exclude-prog.m4 (gl_REMOVE_PROG): Fix syntax error. X-Git-Tag: v6.9.90~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c31db8cc416daaf52b231361ab5872050ee97ff;p=thirdparty%2Fcoreutils.git * m4/include-exclude-prog.m4 (gl_REMOVE_PROG): Fix syntax error. Remove trailing space from result. --- diff --git a/ChangeLog b/ChangeLog index 4ba238955b..ab62224459 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-15 Andreas Schwab + + * m4/include-exclude-prog.m4 (gl_REMOVE_PROG): Fix syntax error. + Remove trailing space from result. + 2007-11-15 Jim Meyering Avoid misbehavior of a cross-device "mv" or "install". diff --git a/m4/include-exclude-prog.m4 b/m4/include-exclude-prog.m4 index d0addc7760..c5e31d9a14 100644 --- a/m4/include-exclude-prog.m4 +++ b/m4/include-exclude-prog.m4 @@ -20,7 +20,8 @@ AC_DEFUN([gl_ADD_PROG], AC_DEFUN([gl_REMOVE_PROG], [{ $1=`for gl_rem_i in $$1; do - test "$gl_rem_i" = "$2" || echo "$gl_rem_i" done | tr '\012' ' '; echo` + test "$gl_rem_i" = "$2" || echo "$gl_rem_i" + done | tr '\012' ' ' | sed 's/ $//'; echo` }]) # Given the name of a variable containing a space-separated list of