summaryrefslogtreecommitdiff
path: root/remoteusage.mdwn
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2011-03-15 10:18:34 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2011-03-15 10:18:34 -0400
commite04e2b521cc8baeba3641d7ddee0c9cd51ddea1b (patch)
tree61db8ee4ad27e5ba66d96fdd12b07728851fb300 /remoteusage.mdwn
parent8d6f76f7feb5a74590609be23de572c4931433f6 (diff)
Changed remote-usage script to use bash printf to quote special chars.
Diffstat (limited to 'remoteusage.mdwn')
-rw-r--r--remoteusage.mdwn2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoteusage.mdwn b/remoteusage.mdwn
index 0298dd9..1ecd3aa 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'`
+ printf -v ARGS "%q " "$@"
$SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${CMD} ${ARGS}
}