diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_libvirt | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 618a45e43..327781d6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-09-06 Marko Myllynen <myllynen@redhat.com> + + * unposted: Completion/Unix/Command/_libvirt: Fix leakage of + $word (after 39179). + 2016-09-06 Peter Stephenson <p.stephenson@samsung.com> * 39181: Src/builtin.c, Src/zsh.h, Src/Zle/complete.c: Add diff --git a/Completion/Unix/Command/_libvirt b/Completion/Unix/Command/_libvirt index f93778876..d68f82d5e 100644 --- a/Completion/Unix/Command/_libvirt +++ b/Completion/Unix/Command/_libvirt @@ -131,7 +131,7 @@ case $state in _default return 0 fi - local cmd + local cmd word for word in ${words:1}; do [[ -n "${_cache_virsh_cmds[(r)$word]}" ]] && cmd=$word && break done @@ -211,7 +211,7 @@ case $state in _wanted commands expl 'virt-admin command' compadd -a _cache_virt_admin_cmds && ret=0 ;; virt_admin_cmd_opts) - local cmd + local cmd word for word in ${words:1}; do [[ -n "${_cache_virt_admin_cmds[(r)$word]}" ]] && cmd=$word && break done |