From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24823 invoked by alias); 29 Aug 2011 15:32:11 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29739 Received: (qmail 26451 invoked from network); 29 Aug 2011 15:32:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer; bh=0aSc6t/O0Odmg7PBzOn2EuUs/3Xg29B5TyVTiTRZ78Y=; b=x7JGuldNZd53XcUJdr+ZqwvJZ1cOd2NP3LMLv0MKrZ4YMv7o1d0PEFtOjXQiNthZOx lQ/YxSnxNugMH9FXvAEKpF9Zi2YnmnP8TJP+NaLtjS8EpB+APo9EAAJ3GFQ6tCEVqdjg ObAqOOWS2pt3NVkytJufQU8pKjBKSeN047La0= From: Mikael Magnusson To: zsh-workers@zsh.org Subject: PATCH: Don't redefine helpers in _rsync() every time, -e takes cuddled args Date: Mon, 29 Aug 2011 17:31:56 +0200 Message-Id: <1314631916-27697-1-git-send-email-mikachu@gmail.com> X-Mailer: git-send-email 1.7.5.4 --- Completion/Unix/Command/_rsync | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/Completion/Unix/Command/_rsync b/Completion/Unix/Command/_rsync index cdb40ab..bbdffef 100644 --- a/Completion/Unix/Command/_rsync +++ b/Completion/Unix/Command/_rsync @@ -96,6 +96,7 @@ _rsync_files() { _alternative "files:file:_files" "remote-files:remote file:_rsync_remote_files" } +_rsync() { _arguments -s \ '*'{-v,--verbose}'[increase verbosity]' \ {--no-v,--no-verbose}'[turn off --verbose]' \ @@ -169,7 +170,7 @@ _arguments -s \ {--no-W,--no-whole-file}'[turn off --whole-file]' \ '(-x --one-file-system)'{-x,--one-file-system}'[do not cross filesystem boundaries]' \ '(-B --block-size)'{-B,--block-size=}'[force a fixed checksum block-size]:block size' \ - '(-e --rsh)'{-e,--rsh=}'[specify the remote shell to use]:remote-shell command:(rsh ssh)' \ + '(-e --rsh)'{-e+,--rsh=}'[specify the remote shell to use]:remote-shell command:(rsh ssh)' \ '--rsync-path=[specify path to rsync on the remote machine]:remote command' \ '--ignore-existing[ignore files that already exist on receiving side]' \ '(--existing --ignore-non-existing)'{--existing,--ignore-non-existing}'[ignore files that do not exist on receiving side]' \ @@ -237,3 +238,6 @@ _arguments -s \ '--protocol=[force an older protocol version to be used]:number' \ '--iconv=[request charset conversion of filenames]:number' \ '--read-batch=[read a batched update from the specified file]:file:_files' +} + +_rsync "$@" -- 1.7.5.4