* [PATCH] relax the pattern for interface matching [not found] <0LrN1u-1Xlb7a1xOu-0132sf> @ 2015-01-13 0:11 ` Eric Cook 2015-01-13 0:28 ` Eric Cook 0 siblings, 1 reply; 2+ messages in thread From: Eric Cook @ 2015-01-13 0:11 UTC (permalink / raw) To: zsh-workers 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] relax the pattern for interface matching 2015-01-13 0:11 ` [PATCH] relax the pattern for interface matching Eric Cook @ 2015-01-13 0:28 ` Eric Cook 0 siblings, 0 replies; 2+ messages in thread From: Eric Cook @ 2015-01-13 0:28 UTC (permalink / raw) To: zsh-workers On 01/12/2015 07:11 PM, Eric Cook wrote: > 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)') This was meant to be sent as a reply to X-seq: 34259:/ ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-13 0:28 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <0LrN1u-1Xlb7a1xOu-0132sf> 2015-01-13 0:11 ` [PATCH] relax the pattern for interface matching Eric Cook 2015-01-13 0:28 ` Eric Cook
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).