From e04e2b521cc8baeba3641d7ddee0c9cd51ddea1b Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Tue, 15 Mar 2011 10:18:34 -0400 Subject: [PATCH] Changed remote-usage script to use bash printf to quote special chars. --- remoteusage.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} } -- 2.43.0