--- Begin Message ---
Subject: |
"libtool --mode=execute" underquoting |
Date: |
08 Oct 2001 17:28:41 +0200 |
User-agent: |
Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.0.107 |
Playing around with libtool --mode=execute I found this:
$ ln -s /bin/echo 'echo me'
$ PATH=.:$PATH libtool --mode=execute 'echo me'
me
This supercedes my last patch about overquoting with --dry-run.
2001-10-08 Andreas Schwab <address@hidden>
* ltmain.in (exec_cmd): Fix last change to readd quoting around
$cmd. Also fix quoting with --dry-run.
--- ltmain.in.~1.278.~ Mon Oct 8 16:42:45 2001
+++ ltmain.in Mon Oct 8 17:22:04 2001
@@ -5115,14 +5115,14 @@
fi
# Now prepare to actually exec the command.
- exec_cmd="\$cmd$args"
+ exec_cmd="\"\$cmd\"$args"
else
# Display what would be done.
if test -n "$shlibpath_var"; then
eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
$echo "export $shlibpath_var"
fi
- $echo "$cmd$args"
+ eval \$echo \"\$cmd\"$args
exit 0
fi
;;
--
Andreas Schwab "And now for something
address@hidden completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
--- End Message ---