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

Re: [PATCH] relax the pattern for interface matching



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:/



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