From: Jesse Rosenthal Date: Thu, 27 Jan 2011 15:32:39 +0000 (-0500) Subject: Explain why I'm sanitizing msg ids. X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=commitdiff_plain;h=b3de4a8c0ee9beda92ef391c6e916df8b19624f3 Explain why I'm sanitizing msg ids. Shell things dollar signs are variables, so it's necessary to escape them in msg ids. --- diff --git a/remoteusage.mdwn b/remoteusage.mdwn index bf41efb..24d28ef 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -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} }