diff options
| author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2012-01-19 16:59:25 -0500 |
|---|---|---|
| committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2012-01-19 16:59:25 -0500 |
| commit | 4f01ff1b5ffb62ac4fdd4917799cbe57bd22f825 (patch) | |
| tree | c7baedb9867555bea3028ee11d9bc01a38b8c2c6 /remoteusage.mdwn | |
| parent | 1e5c1247bf095a03338f40e5a7bfaaec760a6c4b (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.
Diffstat (limited to 'remoteusage.mdwn')
| -rw-r--r-- | remoteusage.mdwn | 4 |
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 $@ |
