X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=blobdiff_plain;f=remoteusage.mdwn;h=24d28ef043a269b241658ebed76f20de7d983061;hp=bf41efb2deaee28561957405df0bcab6fa018d45;hb=b3de4a8c0ee9beda92ef391c6e916df8b19624f3;hpb=9a6ab6d79d29b3006a32f4bc2d6f57e8e359e0c5 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} }