diff options
| author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2011-01-27 10:32:39 -0500 |
|---|---|---|
| committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2011-01-27 10:32:39 -0500 |
| commit | b3de4a8c0ee9beda92ef391c6e916df8b19624f3 (patch) | |
| tree | 339ac678e6b8624b315aae0adb2fd47335ab0d40 | |
| parent | 9a6ab6d79d29b3006a32f4bc2d6f57e8e359e0c5 (diff) | |
Explain why I'm sanitizing msg ids.
Shell things dollar signs are variables, so it's necessary to escape
them in msg ids.
| -rw-r--r-- | remoteusage.mdwn | 2 |
1 files changed, 2 insertions, 0 deletions
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} } |
