diff options
author | Eric Cook <llua@gmx.com> | 2015-01-12 17:26:21 -0500 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-01-13 09:25:56 +0000 |
commit | c5b2eaaaa4dbd6cb3c3a16cce70da2c062f7a9c9 (patch) | |
tree | f721e2e46b748d4866258e2714d93cfcc6fcb95f | |
parent | 5f4325a0a41987a92cee8b64a76e5b0d5e831f60 (diff) | |
download | zsh-c5b2eaaaa4dbd6cb3c3a16cce70da2c062f7a9c9.tar.gz zsh-c5b2eaaaa4dbd6cb3c3a16cce70da2c062f7a9c9.tar.xz zsh-c5b2eaaaa4dbd6cb3c3a16cce70da2c062f7a9c9.zip |
34259: variable declarations in ip completion
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_ip | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 4c29d89ff..c95a316f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-01-13 Peter Stephenson <p.stephenson@samsung.com> + + * 34259: Eric Cook: Completion/Unix/Command/_ip: fix variable + declarations. + 2015-01-12 Peter Stephenson <p.stephenson@samsung.com> * 34255: README, Src/math.c, Test/C01arith.ztst: propagate type diff --git a/Completion/Unix/Command/_ip b/Completion/Unix/Command/_ip index f880f2683..7a84ad5ef 100644 --- a/Completion/Unix/Command/_ip +++ b/Completion/Unix/Command/_ip @@ -38,6 +38,7 @@ subcmd_ipaddrs=( /$'(<->(.<->(.<->(.<->|)|)|)|[:[:xdigit]]#:[:[:xdigit:]]#)(|/<->)\0'/ ":ipaddress:IP address (v4 or v6) currently set:( $(ip addr show | sed -n 's/^ *inet6* \([0-9a-f\.:/]*\) .*$/\1/p') )" ) +local -a subcmd_prefix_label subcmd_prefix_label=( /$'(<->(.<->(.<->(.<->|)|)|)|[:[:xdigit]]#:[:[:xdigit:]]#)(|/<->)\0'/ ":ipaddresslabel:IP addrlabel prefix currently set:( $(ip -6 addrlabel list 2>/dev/null | sed -n 's/^prefix \([0-9a-f\.:/]*\) .*$/\1/p') )" @@ -98,7 +99,7 @@ _regex_words nexthop 'nexthop route keyword' \ 'weight:specify relative quality of route:$subcmd_number' subcmd_nexthop=("$reply[@]" "#") -local -a subcmd_rtproto +local -a subcmd_rtprotocol _regex_words rtprotocol 'route protocol' \ 'redirect:installed from ICMP redirect' \ 'kernel:installed automatically by kernel' \ |