From aeb64723fd045738352af0993f9c0bad68bcfeac Mon Sep 17 00:00:00 2001 From: Philip Sequeira Date: Fri, 15 Aug 2014 15:22:44 -0400 Subject: [PATCH] TOOLS/zsh.pl: protect global environment --- TOOLS/zsh.pl | 4 ++++ 1 file changed, 4 insertions(+) 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 \\