summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2012-01-19 16:59:25 -0500
committerJesse Rosenthal <jrosenthal@jhu.edu>2012-01-19 16:59:25 -0500
commit4f01ff1b5ffb62ac4fdd4917799cbe57bd22f825 (patch)
treec7baedb9867555bea3028ee11d9bc01a38b8c2c6
parent1e5c1247bf095a03338f40e5a7bfaaec760a6c4b (diff)
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.
-rw-r--r--remoteusage.mdwn4
1 files changed, 1 insertions, 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 $@