Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] relax the pattern for interface matching
- X-seq: zsh-workers 34260
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] relax the pattern for interface matching
- Date: Mon, 12 Jan 2015 19:11:21 -0500
- In-reply-to: <0LrN1u-1Xlb7a1xOu-0132sf>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <0LrN1u-1Xlb7a1xOu-0132sf>
Strangely 0ero, -0ero, *0ero, 0ero$'\a'.0, are all legal names for interfaces in linux.
---
Completion/Unix/Command/_ip | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_ip b/Completion/Unix/Command/_ip
index 7a84ad5..3b68c35 100644
--- a/Completion/Unix/Command/_ip
+++ b/Completion/Unix/Command/_ip
@@ -9,7 +9,7 @@
# Values encoding simple types
#
local -a subcmd_dev
-subcmd_dev=(/$'[[:alpha:]]##[[:digit:]]##(\.[[:digit:]]##)#\0'/ ':interfaces:network interface:_net_interfaces')
+subcmd_dev=(/$'[[:alnum:][:punct:][:cntrl:][:digit:]]##\0'/ ':interfaces:network interface:_net_interfaces')
local -a subcmd_onoff
subcmd_onoff=(/$'(on|off)\0'/ ':onoff:state (on or off):(on off)')
--
2.2.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author