Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: correct quoting in Completion/Linux/Command/_ss



My ss on Debian stretch doesn't a --vsock flag, so this merely
fixes shell syntax for me.  Someone able to test this better
could have improvements.

Might it not be a bad idea to run scripts through zsh -n
at install-time, or do some other kind of sanity-check?

diff --git a/Completion/Linux/Command/_ss b/Completion/Linux/Command/_ss
index afe00b6a3..8b668e1bd 100644
--- a/Completion/Linux/Command/_ss
+++ b/Completion/Linux/Command/_ss
@@ -33,7 +33,7 @@ _arguments -C -s \
   "($info -d --dccp)"{-d,--dccp}'[display DCCP sockets]' \
   "($info -w --raw)"{-w,--raw}'[display RAW sockets]' \
   "($info -x --unix)"{-x,--unix}'[display Unix domain sockets]' \
-  "($info)--vsock[display only vsock sockets]' \
+  "($info) --vsock[display only vsock sockets]" \
   "($info -f --family)"{-f,--family}'[display sockets of specified type]:family:(unix inet inet6 link netlink unix vsock)' \
   "($info -K --kill)"{-K,--kill}'[forcibly close sockets, display what was closed]' \
   "($info -H --no-header)"{-H,--no-header}'[suppress header line]' \



Messages sorted by: Reverse Date, Date, Thread, Author