ssh "bash -c" bug
Ángel González
keisial at gmail.com
Sun Feb 24 05:59:28 EST 2013
The compatibility argument seemed to me strong enough not to change
anything on the command line, but as I was reading this mail, I noticed
another benefit of doing the command line processing only at the client
shell, which is the added difficulty when coding a wrapper script which
calls ssh, as you not only need to ensure the correct quoting inside the
shell script, but also that the user parameters won't become a
metacharacter when processed as a command line in the remote shell.
Needing to filter them with commands such as:
sed -e 's!\(["$\\]\)!\\\1!g' -e 's!^\(.*\)$!"\1"!'
More information about the openssh-unix-dev
mailing list