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/Command/_ant | 2 +- Completion/Unix/Command/_bogofilter | 2 +- Completion/Unix/Command/_cdrecord | 2 +- Completion/Unix/Command/_chkconfig | 2 +- Completion/Unix/Command/_chmod | 2 +- Completion/Unix/Command/_gs | 2 +- Completion/Unix/Command/_look | 2 +- Completion/Unix/Command/_mount | 2 +- Completion/Unix/Command/_python | 2 +- Completion/Unix/Command/_rar | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) (limited to 'Completion/Unix/Command') diff --git a/Completion/Unix/Command/_ant b/Completion/Unix/Command/_ant index e2f4a9dc5..19860f55f 100644 --- a/Completion/Unix/Command/_ant +++ b/Completion/Unix/Command/_ant @@ -2,7 +2,7 @@ # Apache Ant version 1.6.4 -local curcontext="$curcontext" state line ret=1 +local curcontext="$curcontext" state line expl ret=1 typeset -A opt_args local buildfile classpath cp userjars importedfiles target='*:target:->target' targets tmp diff --git a/Completion/Unix/Command/_bogofilter b/Completion/Unix/Command/_bogofilter index 2e7a30f00..9e6ac3f88 100644 --- a/Completion/Unix/Command/_bogofilter +++ b/Completion/Unix/Command/_bogofilter @@ -1,6 +1,6 @@ #compdef bogoutil bogotune bogofilter -local ret bogotokens +local expl ret bogotokens _bogoutil_caching_policy () { diff --git a/Completion/Unix/Command/_cdrecord b/Completion/Unix/Command/_cdrecord index 2fab4faf4..8235d0789 100644 --- a/Completion/Unix/Command/_cdrecord +++ b/Completion/Unix/Command/_cdrecord @@ -1,6 +1,6 @@ #compdef cdrecord -local curcontext="$curcontext" state line ret=1 +local curcontext="$curcontext" state line expl ret=1 local devices btypes _arguments -C \ diff --git a/Completion/Unix/Command/_chkconfig b/Completion/Unix/Command/_chkconfig index 912ac3829..76da38d27 100644 --- a/Completion/Unix/Command/_chkconfig +++ b/Completion/Unix/Command/_chkconfig @@ -1,6 +1,6 @@ #compdef chkconfig -local curcontext="$curcontext" state line ret=1 +local curcontext="$curcontext" state line expl ret=1 case $OSTYPE in linux*) diff --git a/Completion/Unix/Command/_chmod b/Completion/Unix/Command/_chmod index c3c949959..1c0e7aadc 100644 --- a/Completion/Unix/Command/_chmod +++ b/Completion/Unix/Command/_chmod @@ -1,6 +1,6 @@ #compdef chmod -local curcontext="$curcontext" state line ret=1 +local curcontext="$curcontext" state line expl ret=1 local -a args privs args=( '*:file:->files' ) diff --git a/Completion/Unix/Command/_gs b/Completion/Unix/Command/_gs index 345be0208..fceedcea7 100644 --- a/Completion/Unix/Command/_gs +++ b/Completion/Unix/Command/_gs @@ -8,7 +8,7 @@ if compset -N --; then return 1 fi else - local curcontext="$curcontext" state line ret=1 + local curcontext="$curcontext" state line expl ret=1 typeset -A opt_args _x_arguments -C \ diff --git a/Completion/Unix/Command/_look b/Completion/Unix/Command/_look index 825488c37..94a90bc3f 100644 --- a/Completion/Unix/Command/_look +++ b/Completion/Unix/Command/_look @@ -1,6 +1,6 @@ #compdef look -local curcontext="$curcontext" state line ret=1 +local curcontext="$curcontext" state line expl ret=1 typeset -A opt_args _arguments -C -s \ diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount index 302584122..d905664c7 100644 --- a/Completion/Unix/Command/_mount +++ b/Completion/Unix/Command/_mount @@ -39,7 +39,7 @@ fi # arguments for the `mount' command for different operating systems # are below these table. -local curcontext="$curcontext" state line suf ret=1 +local curcontext="$curcontext" state line expl suf ret=1 local args deffs=iso9660 tmp typeops=-t _fs_any _nfs_access _fs_nfs _nfs_ufs \ _fs_ufs _fs_efs _fs_iso9660 _fs_cachefs _fs_s5fs _fs_tmpfs _fs_pcfs _fs_hsfs \ _fs_advfs _fs_cdfs _fs_affs _fs_ext2 _fs_fat _fs_ext3 _fs_msdos _fs_umsdos \ diff --git a/Completion/Unix/Command/_python b/Completion/Unix/Command/_python index bb048fc68..dc399b789 100644 --- a/Completion/Unix/Command/_python +++ b/Completion/Unix/Command/_python @@ -2,7 +2,7 @@ # Python 2.4 -local curcontext="$curcontext" state line +local curcontext="$curcontext" state line expl typeset -A opt_args _arguments -s -S \ diff --git a/Completion/Unix/Command/_rar b/Completion/Unix/Command/_rar index 8b12dc8eb..57a5a995d 100644 --- a/Completion/Unix/Command/_rar +++ b/Completion/Unix/Command/_rar @@ -1,6 +1,6 @@ #compdef rar unrar -local common +local common expl common=( '-ad[append archive name to destination path]' -- cgit 1.4.1