From: Jesse Rosenthal Date: Thu, 19 Jan 2012 21:59:25 +0000 (-0500) Subject: Quote all the arguments. X-Git-Url: https://git.cworth.org/git?p=notmuch-wiki;a=commitdiff_plain;h=4f01ff1b5ffb62ac4fdd4917799cbe57bd22f825 Quote all the arguments. There used to be a point in separating the command and the arguments. No more. This allows `search-tags` to work correctly as well. --- diff --git a/remoteusage.mdwn b/remoteusage.mdwn index 48aced8..d70a868 100644 --- a/remoteusage.mdwn +++ b/remoteusage.mdwn @@ -99,10 +99,8 @@ future calls can reuse the socket. else exit 1 fi - CMD=$1 - shift printf -v ARGS "%q " "$@" - $SSH_BIN -S $SSH_SOCKET $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${CMD} ${ARGS} + $SSH_BIN -S $SSH_SOCKET $USER@$SSH_HOST $NOTMUCH_REMOTE_BIN ${ARGS} } notmuch_run $@