]> git.cworth.org Git - notmuch-wiki/commitdiff
Quote all the arguments.
authorJesse Rosenthal <jrosenthal@jhu.edu>
Thu, 19 Jan 2012 21:59:25 +0000 (16:59 -0500)
committerJesse Rosenthal <jrosenthal@jhu.edu>
Thu, 19 Jan 2012 21:59:25 +0000 (16:59 -0500)
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

index 48aced826cc5478283fd802fca50691735af397a..d70a8683b7fb2d4fcfa9c0fcb357aa93ca28d246 100644 (file)
@@ -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 $@