diff options
Diffstat (limited to 'Completion/BSD/Command')
-rw-r--r-- | Completion/BSD/Command/_sockstat | 18 |
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))' |