summaryrefslogtreecommitdiff
path: root/Completion/BSD/Command/_sockstat
diff options
context:
space:
mode:
authorFrank Terbeck <ft@bewatermyfriend.org>2011-12-01 10:02:04 +0100
committerFrank Terbeck <ft@bewatermyfriend.org>2011-12-01 10:02:04 +0100
commitd8da5ea2f2bc5f837d0b364fff2636ebdb2f90ca (patch)
tree9fd9a57486ac4702608d92088ffd91f52971244f /Completion/BSD/Command/_sockstat
parentaf2bb4fdb09414d21922d3fafe4e3a0ac1332f01 (diff)
parent9d71f4c207fb34e8d64af0443c83231b1cc3b494 (diff)
downloadzsh-d8da5ea2f2bc5f837d0b364fff2636ebdb2f90ca.tar.gz
zsh-d8da5ea2f2bc5f837d0b364fff2636ebdb2f90ca.zip
Merge commit 'zsh-4.3.13' into debian
Diffstat (limited to 'Completion/BSD/Command/_sockstat')
-rw-r--r--Completion/BSD/Command/_sockstat18
1 files changed, 9 insertions, 9 deletions
diff --git a/Completion/BSD/Command/_sockstat b/Completion/BSD/Command/_sockstat
index 2acbe6bec..e61854622 100644
--- a/Completion/BSD/Command/_sockstat
+++ b/Completion/BSD/Command/_sockstat
@@ -3,10 +3,10 @@
local tmp_proto protocols proto
tmp_proto=(${${(M)${(f)"$(</etc/protocols)"}##[a-z0-9]*}})
-for proto ($tmp_proto) {
+for proto ($tmp_proto) {
case $proto in
*\#*)
- protocols=($protocols ${${(j: :)${=proto}}// *\# /:})
+ protocols=($protocols ${${(j: :)${=proto}}// *\# /:})
;;
*)
protocols=($protocols ${${(j: :)${=proto}}// */})
@@ -14,10 +14,10 @@ for proto ($tmp_proto) {
}
_arguments -s \
- '-4[Show AF_INET (IPv4) sockets]' \
- '-6[Show AF_INET6 (IPv6) sockets]' \
- '-c[Show connected sockets]' \
- '-l[Show listening sockets]' \
- '-u[Show AF_LOCAL (UNIX) sockets]' \
- '-p[Only show Internet sockets if the port number is on the specified list]' \
- '-P[Only show sockets of the specified protocols]:protocols:(($protocols))'
+ '-4[show AF_INET (IPv4) sockets]' \
+ '-6[show AF_INET6 (IPv6) sockets]' \
+ '-c[show connected sockets]' \
+ '-l[show listening sockets]' \
+ '-u[show AF_LOCAL (UNIX) sockets]' \
+ '-p[only show Internet sockets if the port number is on the specified list]' \
+ '-P[only show sockets of the specified protocols]:protocols:(($protocols))'