mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-29 00:04:42 +00: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:
+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