From b3de4a8c0ee9beda92ef391c6e916df8b19624f3 Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Thu, 27 Jan 2011 10:32:39 -0500 Subject: [PATCH] Explain why I'm sanitizing msg ids. Shell things dollar signs are variables, so it's necessary to escape them in msg ids. --- remoteusage.mdwn | 2 ++ 1 file changed, 2 insertions(+) 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} } -- 2.43.0