From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4173 invoked from network); 23 Jan 2002 15:38:27 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 23 Jan 2002 15:38:27 -0000 Received: (qmail 22885 invoked by alias); 23 Jan 2002 15:38:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4617 Received: (qmail 22871 invoked from network); 23 Jan 2002 15:38:10 -0000 Date: Wed, 23 Jan 2002 10:38:07 -0500 From: Anthony R Iano-Fletcher To: Sven Wischnowsky Cc: zsh-users@sunsite.dk Subject: Re: completion for fping (not rsync)? Message-ID: <20020123153807.GA21276@argo.cit.nih.gov> Mail-Followup-To: Sven Wischnowsky , zsh-users@sunsite.dk References: <20020122191915.GA25925@argo.cit.nih.gov> <15438.30441.817950.156120@wischnow.berkom.de> <20020123150253.GA13879@argo.cit.nih.gov> <15438.54627.391890.885390@wischnow.berkom.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15438.54627.391890.885390@wischnow.berkom.de> User-Agent: Mutt/1.3.25i Sorry, I seem to have confused the waters here. The completion I threw out was for fping. I downloaded the completion for rsync but haven't spent much time on it yet. > > 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' > Brilliant. Thanks..... > 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. yes this would be for rsync..... I'll work on that this afternoon. I was going to peek at _scp, etc.. I did notice that _rsync seems to be only half done. Thanks, Anthony. -- Anthony R Iano-Fletcher Anthony.Iano-Fletcher@nih.gov http://cbel.cit.nih.gov/~arif CBEL, CIT, NIH, Bethesda, MD, USA. Phone: (+1) 301 402 1741.