X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=remoteusage.mdwn;h=1ecd3aa4aed638b589561f19e021ec4a59b773c8;hb=e04e2b521cc8baeba3641d7ddee0c9cd51ddea1b;hp=0298dd99d10f5887ade19a71aeee55cbcb6df351;hpb=8d6f76f7feb5a74590609be23de572c4931433f6;p=notmuch-wiki 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} }