From: Aaron Schrab <aaron@schrab.com>
To: zsh-workers@zsh.org
Subject: [PATCH] run-help-ip: Fix help for address and addrlabel
Date: Thu, 23 Mar 2017 17:45:40 -0400 [thread overview]
Message-ID: <20170323214540.1771-1-aaron@schrab.com> (raw)
The `ip address` subcommand can be abbreviated to any substring,
including just `a`. A longer substring may have been looked for here to
try to reduce the likelihood of conflicts, but there still was one with
`addrlabel`. Reduce both of these patterns to the shortest substring
that is accepted by the `ip` command, and take care of the overlap by
checking for the longer pattern first.
---
Functions/Misc/run-help-ip | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Functions/Misc/run-help-ip b/Functions/Misc/run-help-ip
index 740af52b5..8807f9ef1 100644
--- a/Functions/Misc/run-help-ip
+++ b/Functions/Misc/run-help-ip
@@ -19,8 +19,8 @@ while [[ $# != 0 && $1 == -* ]]; do
done
case $1 in
- (addr*) man ip-address ;;
- (addrlabel) man ip-addrlabel ;;
+ (addrl*) man ip-addrlabel ;;
+ (a*) man ip-address ;;
(l2*) man ip-l2tp ;;
(li*) man ip-link ;;
(ma*) man ip-maddress ;;
--
2.12.1.534.g7cedf66e54
reply other threads:[~2017-03-23 21:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20170323214540.1771-1-aaron@schrab.com \
--to=aaron@schrab.com \
--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).