diff options
| author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2011-01-28 09:58:14 -0500 |
|---|---|---|
| committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2011-01-28 09:58:14 -0500 |
| commit | d6b6189145c19e9ed965cc75536ed239120835c2 (patch) | |
| tree | cdd7ba1adda234348d3f9af7a4e07e57f480473e | |
| parent | b3de4a8c0ee9beda92ef391c6e916df8b19624f3 (diff) | |
Added more special characters to be escaped.
Escape "*" for wild card and "!" just in case as well.
| -rw-r--r-- | remoteusage.mdwn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 24d28ef..7a21992 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -81,7 +81,7 @@ be necessary in the furture. shift # we need to a little sanitizing of msg ids so the shell # doesn't mangle them - ARGS=`echo $@ | sed 's/\\$/\\\\$/g'` + ARGS=`echo $@ | sed 's/[\\$\\*\\!]/\\\&/g'` $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${CMD} ${ARGS} } |
