]> git.notmuchmail.org Git - obsolete/notmuch-wiki/blobdiff - remoteusage.mdwn
Added more special characters to be escaped.
[obsolete/notmuch-wiki] / remoteusage.mdwn
index bf41efb2deaee28561957405df0bcab6fa018d45..7a219920138534f6faeee098e81e79c7b5bf9d01 100644 (file)
@@ -79,7 +79,9 @@ be necessary in the furture.
         [ -d "${CACHE}" ] || mkdir -p "${CACHE}"
         CMD=$1
         shift
-        ARGS=`echo $@ | sed 's/\\$/\\\\$/g'`
+       # we need to a little sanitizing of msg ids so the shell
+        # doesn't mangle them
+       ARGS=`echo $@ | sed 's/[\\$\\*\\!]/\\\&/g'`
         $SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${CMD} ${ARGS}
     }