From 6dbf2f2f4a97e2831094a73c662484ce990e7e41 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 2 Nov 2008 14:12:29 +0000 Subject: 25988: declare temporary cache array as local, thanks to problem noticed by Kazuhiro NISHIYAMA. --- Completion/Unix/Command/_bogofilter | 1 + Completion/Unix/Type/_path_commands | 4 ++-- Completion/Unix/Type/_perl_modules | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'Completion/Unix') diff --git a/Completion/Unix/Command/_bogofilter b/Completion/Unix/Command/_bogofilter index 9e6ac3f88..980d3155e 100644 --- a/Completion/Unix/Command/_bogofilter +++ b/Completion/Unix/Command/_bogofilter @@ -3,6 +3,7 @@ local expl ret bogotokens _bogoutil_caching_policy () { + local -a oldp # rebuild if cache is more than a week old oldp=( "$1"(mw+1) ) diff --git a/Completion/Unix/Type/_path_commands b/Completion/Unix/Type/_path_commands index 340a013c3..393c0c67e 100644 --- a/Completion/Unix/Type/_path_commands +++ b/Completion/Unix/Type/_path_commands @@ -3,8 +3,8 @@ (( $+functions[_path_commands_caching_policy] )) || _path_commands_caching_policy() { -local oldp file -typeset -a dbfiles +local file +local -a oldp dbfiles # rebuild if cache is more than a week old oldp=( "$1"(Nmw+1) ) diff --git a/Completion/Unix/Type/_perl_modules b/Completion/Unix/Type/_perl_modules index 00629335b..26cab0c23 100644 --- a/Completion/Unix/Type/_perl_modules +++ b/Completion/Unix/Type/_perl_modules @@ -132,6 +132,7 @@ _perl_modules () { _perl_modules_caching_policy () { local _perllocals + local -a oldp # rebuild if cache is more than a week old oldp=( "$1"(mw+1) ) -- cgit 1.4.1