mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-12-07 00:18:45 +08:00
Avoid defining local variable options
zsh has the built in variable 'options'. zsh sometimes behaves weirdly when there is a local variable that is named 'options'
This commit is contained in:
1 parent
75094d7275
commit
ba54f170a6
2 files changed
+8
-8
No files matched your search
+2
-2
@@ -339,9 +339,9 @@ _vboxmanage() {
|
||||
&& ret=0
|
||||
;;
|
||||
(modifyvm|export)
|
||||
local -a options=(${(@f)"$(vboxmanage $words[1] | perl -wln -e 'm{(--[a-zA-Z_-]+) [^]|]+} and print qq{$1:arg}')"})
|
||||
local -a command_options=(${(@f)"$(vboxmanage $words[1] | perl -wln -e 'm{(--[a-zA-Z_-]+) [^]|]+} and print qq{$1:arg}')"})
|
||||
_arguments \
|
||||
$options \
|
||||
$command_options \
|
||||
':machine:_vboxmachines'
|
||||
;;
|
||||
(controlvm)
|
||||
|
||||
Reference in new issue
Block a user