* build-aux/install-reloc (func_verbose): Escape characters that would
be interpreted by the shell.
+2019-02-24 Bruno Haible <bruno@clisp.org>
+
+ relocatable-prog: Improve verbose output.
+ * build-aux/install-reloc (func_verbose): Escape characters that would
+ be interpreted by the shell.
+
2019-02-24 Bruno Haible <bruno@clisp.org>
stat, lstat: Fix conflict with relocatable-prog-wrapper module.
# Outputs a command and runs it.
func_verbose ()
{
- echo "$@"
+ # Make it easy to copy&paste the printed command into a shell in most cases,
+ # by escaping '\\', '"', and '$'. This is not perfect, just good enough.
+ echo "$@" | sed -e 's/\([\\"$]\)/\\\1/g'
"$@"
}