bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Syntax error in gl_REMOVE_PROG


From: Andreas Schwab
Subject: Syntax error in gl_REMOVE_PROG
Date: Thu, 15 Nov 2007 13:58:55 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux)

2007-11-15  Andreas Schwab  <address@hidden>

        * include-exclude-prog.m4 (gl_REMOVE_PROG): Fix syntax error.
        Remove trailing space from result.

diff --git a/m4/include-exclude-prog.m4 b/m4/include-exclude-prog.m4
index d0addc7..c5e31d9 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

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]