From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29788 invoked from network); 29 Jan 2007 18:42:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Jan 2007 18:42:00 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 31653 invoked from network); 29 Jan 2007 18:41:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Jan 2007 18:41:54 -0000 Received: (qmail 19903 invoked by alias); 29 Jan 2007 18:41:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23140 Received: (qmail 19893 invoked from network); 29 Jan 2007 18:41:50 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 29 Jan 2007 18:41:50 -0000 Received: (qmail 31349 invoked from network); 29 Jan 2007 18:41:50 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 29 Jan 2007 18:41:44 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 18E055C06B; Mon, 29 Jan 2007 13:41:41 -0500 (EST) Date: Mon, 29 Jan 2007 13:41:41 -0500 From: Clint Adams To: zsh-workers@sunsite.dk Subject: PATCH: iputils-arping Message-ID: <20070129184141.GA24371@scowler.net> Mail-Followup-To: zsh-workers@sunsite.dk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) Hooray for UI consistency. Index: Completion/Unix/Command/_arping =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_arping,v retrieving revision 1.2 diff -u -r1.2 _arping --- Completion/Unix/Command/_arping 31 Jul 2003 15:26:14 -0000 1.2 +++ Completion/Unix/Command/_arping 29 Jan 2007 18:39:57 -0000 @@ -1,5 +1,23 @@ #compdef arping +if _pick_variant iputils=iputils unix -V; then + +_arguments -s \ + '-f[quit on first reply]' \ + '-q[be quiet]' \ + '-b[keep broadcasting, do not go unicast]' \ + '-D[duplicate address detection mode]'\ + '-U[Unsolicited ARP mode, update your neighbours]' \ + '-A[ARP answer mode, update your neighbours]' \ + '-V[print version and exit]' \ + '-c[how many packets to send]:count' \ + '-w[how long to wait for a reply]:timeout' \ + '-I[interface]:ethernet interface:_net_interfaces' \ + '-s[source ip address]:source IP address:_hosts' \ + ':destination:_hosts' + +else + _arguments -s \ '(-)-h[display help information]' \ '-q[only display error messages]' \ @@ -17,6 +35,8 @@ '-s[set source MAC address]:source MAC address' \ '-t[set target MAC address]:target MAC address' \ '-c[send this many requests]:count' \ - '-i[interface]:interface' \ + '-i[interface]:interface:_net_interfaces' \ '-A[only count addresses matching requested address]' \ - '(-B):address:_hosts' \ + '(-B):address:_hosts' + +fi