diff options
author | Philip Sequeira <phsequei@gmail.com> | 2014-08-15 15:22:44 -0400 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-08-17 14:14:48 +0200 |
commit | aeb64723fd045738352af0993f9c0bad68bcfeac (patch) | |
tree | cdeaac2f9a0f47529a4ee7ed6a8ed1730436605d /TOOLS | |
parent | f935838b2dccc2f57b1071f0e612f4b7bf9be802 (diff) | |
download | mpv-aeb64723fd045738352af0993f9c0bad68bcfeac.tar.bz2 mpv-aeb64723fd045738352af0993f9c0bad68bcfeac.tar.xz |
TOOLS/zsh.pl: protect global environment
Diffstat (limited to 'TOOLS')
-rwxr-xr-x | TOOLS/zsh.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/TOOLS/zsh.pl b/TOOLS/zsh.pl index e9757bb4aa..2a23999091 100755 --- a/TOOLS/zsh.pl +++ b/TOOLS/zsh.pl @@ -42,6 +42,9 @@ my $tmpl = <<"EOS"; # mpv zsh completion +local curcontext="\$curcontext" state state_descr line +typeset -A opt_args + local rc=1 _arguments -C -S \\ @@ -86,6 +89,7 @@ $vf_str ;; mfiles) + local expl _tags files urls while _tags; do _requested files expl 'media file' _files -g \\ |