diff options
author | Clint Adams <clint@users.sourceforge.net> | 2008-11-02 14:12:29 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2008-11-02 14:12:29 +0000 |
commit | 6dbf2f2f4a97e2831094a73c662484ce990e7e41 (patch) | |
tree | 2b7eb40ddd7e3518a2a962eb8accf5a1ef7d9616 /Completion/Unix | |
parent | 1b78e1a9121111ccb628262202c112c199ffc6d9 (diff) | |
download | zsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.tar.gz zsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.tar.xz zsh-6dbf2f2f4a97e2831094a73c662484ce990e7e41.zip |
25988: declare temporary cache array as local, thanks to problem noticed by Kazuhiro NISHIYAMA.
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_bogofilter | 1 | ||||
-rw-r--r-- | Completion/Unix/Type/_path_commands | 4 | ||||
-rw-r--r-- | Completion/Unix/Type/_perl_modules | 1 |
3 files changed, 4 insertions, 2 deletions
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) ) |