From: pda@freeshell.net
To: zsh-workers@zsh.org
Subject: PATCH: correct quoting in Completion/Linux/Command/_ss
Date: Mon, 9 Apr 2018 20:08:05 -0400 [thread overview]
Message-ID: <20180410000349.GA27990@i5nuc> (raw)
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]' \
next reply other threads:[~2018-04-10 0:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-10 0:08 pda [this message]
2018-04-10 3:27 ` Eric Cook
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180410000349.GA27990@i5nuc \
--to=pda@freeshell.net \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).