From: Jesse Rosenthal Date: Tue, 15 Mar 2011 14:18:34 +0000 (-0400) Subject: Changed remote-usage script to use bash printf to quote special chars. X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=commitdiff_plain;h=e04e2b521cc8baeba3641d7ddee0c9cd51ddea1b Changed remote-usage script to use bash printf to quote special chars. --- 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} }