diff options
| author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2011-03-15 10:18:34 -0400 |
|---|---|---|
| committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2011-03-15 10:18:34 -0400 |
| commit | e04e2b521cc8baeba3641d7ddee0c9cd51ddea1b (patch) | |
| tree | 61db8ee4ad27e5ba66d96fdd12b07728851fb300 | |
| parent | 8d6f76f7feb5a74590609be23de572c4931433f6 (diff) | |
Changed remote-usage script to use bash printf to quote special chars.
| -rw-r--r-- | remoteusage.mdwn | 2 |
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} } |
