libtool-patches
[Top][All Lists]
Advanced

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

quote evalcmd


From: Alexandre Duret-Lutz
Subject: quote evalcmd
Date: 29 Dec 2003 17:56:27 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.3.50

I discovered this while passing 'a * b' to a calculator-like
program in a test suite.

~/temp % touch a b c
~/temp % libtool --mode=execute echo '1 * 2'
1 a b c 2


2003-12-29  Alexandre Duret-Lutz  <address@hidden>

        * ltmain.sh: Quote $exec_cmd before it is eval'ed, so that
        libtool --mode=execute echo '4 * 5' does not expand the `*'.

Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.355
diff -u -r1.355 ltmain.in
--- ltmain.in   10 Nov 2003 21:06:49 -0000      1.355
+++ ltmain.in   29 Dec 2003 16:45:32 -0000
@@ -6322,7 +6322,7 @@
 fi # test -z "$show_help"
 
 if test -n "$exec_cmd"; then
-  eval exec $exec_cmd
+  eval exec "$exec_cmd"
   exit 1
 fi
 

-- 
Alexandre Duret-Lutz





reply via email to

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