From: Jesse Rosenthal Date: Fri, 28 Jan 2011 14:58:14 +0000 (-0500) Subject: Added more special characters to be escaped. X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=commitdiff_plain;h=d6b6189145c19e9ed965cc75536ed239120835c2 Added more special characters to be escaped. Escape "*" for wild card and "!" just in case as well. --- diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 24d28ef..7a21992 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'` + ARGS=`echo $@ | sed 's/[\\$\\*\\!]/\\\&/g'` $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${CMD} ${ARGS} }