]> git.notmuchmail.org Git - notmuch-wiki/commitdiff
Explain why I'm sanitizing msg ids.
authorJesse Rosenthal <jrosenthal@jhu.edu>
Thu, 27 Jan 2011 15:32:39 +0000 (10:32 -0500)
committerJesse Rosenthal <jrosenthal@jhu.edu>
Thu, 27 Jan 2011 15:32:39 +0000 (10:32 -0500)
Shell things dollar signs are variables, so it's necessary to escape
them in msg ids.

remoteusage.mdwn

index bf41efb2deaee28561957405df0bcab6fa018d45..24d28ef043a269b241658ebed76f20de7d983061 100644 (file)
@@ -79,6 +79,8 @@ be necessary in the furture.
         [ -d "${CACHE}" ] || mkdir -p "${CACHE}"
         CMD=$1
         shift
+       # 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}
     }