zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _ping
@ 2005-10-24  2:26 Clint Adams
  2005-10-24 17:06 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2005-10-24  2:26 UTC (permalink / raw)
  To: zsh-workers

Completion for iputils ping and FreeBSD 4.11 ping.

Index: Completion/Unix/Command/_ping
===================================================================
RCS file: Completion/Unix/Command/_ping
diff -N Completion/Unix/Command/_ping
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_ping	24 Oct 2005 02:25:31 -0000
@@ -0,0 +1,63 @@
+#compdef ping
+
+if _pick_variant iputils=iputils unix -V; then
+              
+  _arguments \
+    '-a[audible]' \
+    '-A[adaptive]' \
+    '-b[allow pinging a broadcast address]' \
+    '-B[do not allow ping to change source address]' \
+    '-c:count' \
+    '-d[set SO_DEBUG on the socket]' \
+    '-f[flood ping]' \
+    '-i:interval in seconds' \
+    '-I:iface:_net_interfaces' \
+    '-l:preload number' \
+    '-L[suppress loopback of multicast packets]' \
+    '-n[numeric output only]' \
+    '-p:padding pattern' \
+    '-Q:QoS TOS bits' \
+    '-q[quiet]' \
+    '-r[bypass normal routing tables]' \
+    '-R[record route]' \
+    '-s:packet size in bytes' \
+    '-S:sndbuf' \
+    '-t:timeout in seconds' \
+    '-T:timestamp option:(tsonly tsandaddr tsprespec)' \
+    '-M:Path MTU Discovery strategy:((do\:prohibit\ fragmentation want\:fragment\ locally dont\:do\ not\ set\ DF\ flag))' \
+    '-U[print full user-to-user latency]' \
+    '-v[verbose]' \
+    '-w:deadline in seconds' \
+    '-W:seconds to wait for a response' \
+    ':host:_hosts'
+
+else
+
+# FreeBSD 4.11
+
+  _arguments \
+    '-A[audible for no packet]' \
+    '-Q[somewhat quiet]' \
+    '-R[record route]' \
+    '-a[audible for each packet]' \
+    '-d[set SO_DEBUG on the socket]' \
+    '-f[flood ping]' \
+    '-n[numeric output only]' \
+    '-q[quiet]' \
+    '-r[bypass normal routing tables]' \
+    '-v[verbose]' \
+    '-c:count' \
+    '-i:wait seconds' \
+    '-l:preload number' \
+    '-m:ttl' \
+    '-p:padding pattern' \
+    '-P:IPsec policy' \
+    '-s:packet size in bytes' \
+    '-S:src addr' \
+    '-t:timeout in seconds' \
+    '-L[suppress loopback of multicast packets]' \
+    '-I:iface:_net_interfaces' \
+    '-T:ttl for multicasted packets' \
+    ':host:_hosts'
+
+fi


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: _ping
  2005-10-24  2:26 PATCH: _ping Clint Adams
@ 2005-10-24 17:06 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2005-10-24 17:06 UTC (permalink / raw)
  To: zsh-workers

Clint Adams <clint@zsh.org> wrote:
> Completion for iputils ping and FreeBSD 4.11 ping.

I think we may want this, too...

Index: Completion/Unix/Type/_hosts
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_hosts,v
retrieving revision 1.4
diff -u -r1.4 _hosts
--- Completion/Unix/Type/_hosts	8 Jun 2005 12:45:35 -0000	1.4
+++ Completion/Unix/Type/_hosts	24 Oct 2005 17:04:28 -0000
@@ -1,4 +1,4 @@
-#compdef ftp ping rwho rup xping traceroute host aaaa zone mx ns soa txt
+#compdef ftp rwho rup xping traceroute host aaaa zone mx ns soa txt
 
 local expl hosts tmp
 


-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-24 17:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-24  2:26 PATCH: _ping Clint Adams
2005-10-24 17:06 ` Peter Stephenson

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).