TOOLS/zsh.pl: protect global environment

This commit is contained in:
Philip Sequeira 2014-08-15 15:22:44 -04:00 committed by Alessandro Ghedini
parent f935838b2d
commit aeb64723fd
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,9 @@ my $tmpl = <<"EOS";
# mpv zsh completion # mpv zsh completion
local curcontext="\$curcontext" state state_descr line
typeset -A opt_args
local rc=1 local rc=1
_arguments -C -S \\ _arguments -C -S \\
@ -86,6 +89,7 @@ $vf_str
;; ;;
mfiles) mfiles)
local expl
_tags files urls _tags files urls
while _tags; do while _tags; do
_requested files expl 'media file' _files -g \\ _requested files expl 'media file' _files -g \\