From 4f01ff1b5ffb62ac4fdd4917799cbe57bd22f825 Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Thu, 19 Jan 2012 16:59:25 -0500 Subject: [PATCH] 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. --- remoteusage.mdwn | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 $@ -- 2.43.0