From 0d8d202ff5491382a7576508d80166f89aac4157 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 8 Jun 2005 05:33:45 +0000 Subject: 21302: make sure expl is declared local in completion functions --- Completion/Unix/Type/_file_systems | 2 +- Completion/Unix/Type/_global_tags | 2 ++ Completion/Unix/Type/_locales | 2 +- Completion/Unix/Type/_user_at_host | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) (limited to 'Completion/Unix/Type') diff --git a/Completion/Unix/Type/_file_systems b/Completion/Unix/Type/_file_systems index d541fac15..50b3ed744 100644 --- a/Completion/Unix/Type/_file_systems +++ b/Completion/Unix/Type/_file_systems @@ -1,6 +1,6 @@ #autoload -local fss +local expl fss case $OSTYPE in aix*) fss=( jfs nfs cdrfs ) ;; diff --git a/Completion/Unix/Type/_global_tags b/Completion/Unix/Type/_global_tags index 9f7abdfa5..a877ce86b 100644 --- a/Completion/Unix/Type/_global_tags +++ b/Completion/Unix/Type/_global_tags @@ -1,4 +1,6 @@ #autoload +local expl + _wanted global-tags expl 'tag' compadd -M 'm:{a-zA-Z}={A-Za-z}' \ -a "$@" - $(_call_program global-tags global --completion $PREFIX) diff --git a/Completion/Unix/Type/_locales b/Completion/Unix/Type/_locales index d8d1ed451..edc86ed78 100644 --- a/Completion/Unix/Type/_locales +++ b/Completion/Unix/Type/_locales @@ -1,6 +1,6 @@ #compdef -value-,LANG,-default- -value-,LANGUAGE,-default- -P -value-,LC_*,-default- -local locales +local expl locales if (( $+commands[locale] )); then locales=( $(_call_program locales locale -a) ) diff --git a/Completion/Unix/Type/_user_at_host b/Completion/Unix/Type/_user_at_host index b652242d3..a242ddeb6 100644 --- a/Completion/Unix/Type/_user_at_host +++ b/Completion/Unix/Type/_user_at_host @@ -5,7 +5,7 @@ # with `-t tag'. # A `-' or `--' as the first argument is ignored. -local suf tag=accounts +local expl suf tag=accounts if [[ "$1" = -t?* ]]; then tag="${1[3,-1]}" -- cgit 1.4.1