Shell things dollar signs are variables, so it's necessary to escape
them in msg ids.
[ -d "${CACHE}" ] || mkdir -p "${CACHE}"
CMD=$1
shift
[ -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}
}
ARGS=`echo $@ | sed 's/\\$/\\\\$/g'`
$SSH_BIN $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${CMD} ${ARGS}
}