]> git.cworth.org Git - notmuch-wiki/blobdiff - remoteusage.mdwn
Added more special characters to be escaped.
[notmuch-wiki] / remoteusage.mdwn
index 24d28ef043a269b241658ebed76f20de7d983061..7a219920138534f6faeee098e81e79c7b5bf9d01 100644 (file)
@@ -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}
     }