zsh-users
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@berkom.de>
To: zsh-users@sunsite.dk
Subject: Re: completion for rsync?
Date: Wed, 23 Jan 2002 16:23:15 +0100	[thread overview]
Message-ID: <15438.54627.391890.885390@wischnow.berkom.de> (raw)
In-Reply-To: <20020123150253.GA13879@argo.cit.nih.gov>


Anthony R Iano-Fletcher wrote:

> ...
> 
> I removed the '&& ret=0'. I followed the recipe from another completion
> function... hence the extra cruft. Likewise I have some extra colons in
> the options.
> 
> You mean something like:
> 	_wanted hosts expl 'host name' _hosts
> That does work better.....

No, just the simple:

 _arguments ... \ # option descriptions here
            '*:host name:_hosts'

and nothing below that.  But of course, that can only be a first try
at _rsync, given its complicated syntax, not all of which can be done
with _arguments. So there probably should be either a state handling
or a local utility function (called instead of the _hosts above) to
handle the `[user@]host:(:|)(src|dest)' syntax.  For some of this,
there are already utility functions, looking at how _ssh handles scp
might help here.


> I'm attaching the next version...... criticism is welcome.
> 
> Do I still need this line?
> > > local expl hosts

With the change I described above: no.  In your version `expl' is
still used (second argument to _wanted).


Bye
  Sven

-- 
Sven Wischnowsky                           wischnow@berkom.de


  reply	other threads:[~2002-01-23 15:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-22 19:19 Anthony R Iano-Fletcher
2002-01-22 19:54 ` Bart Schaefer
2002-01-23  8:40 ` Sven Wischnowsky
2002-01-23 15:02   ` Anthony R Iano-Fletcher
2002-01-23 15:23     ` Sven Wischnowsky [this message]
2002-01-23 15:38       ` completion for fping (not rsync)? Anthony R Iano-Fletcher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15438.54627.391890.885390@wischnow.berkom.de \
    --to=wischnow@berkom.de \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).