summary refs log tree commit diff
path: root/Completion/Solaris
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2017-04-26 16:32:10 +0200
committerOliver Kiddle <opk@zsh.org>2017-04-26 16:32:10 +0200
commit78afb218b0b2603db227667b616578bfe927518c (patch)
tree40277c76f6c347e144180b587a3e35c9fa0cbb5c /Completion/Solaris
parent408b92b168078a338f5fc2c2f95f39f8aa8e5f67 (diff)
downloadzsh-78afb218b0b2603db227667b616578bfe927518c.tar.gz
zsh-78afb218b0b2603db227667b616578bfe927518c.tar.xz
zsh-78afb218b0b2603db227667b616578bfe927518c.zip
40965: fix for missing local declarations of expl
Diffstat (limited to 'Completion/Solaris')
-rw-r--r--Completion/Solaris/Command/_svcadm2
-rw-r--r--Completion/Solaris/Command/_svccfg2
-rw-r--r--Completion/Solaris/Type/_svcs_fmri2
3 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Solaris/Command/_svcadm b/Completion/Solaris/Command/_svcadm
index 347e25e2a..c9826f2eb 100644
--- a/Completion/Solaris/Command/_svcadm
+++ b/Completion/Solaris/Command/_svcadm
@@ -1,7 +1,7 @@
 #compdef svcadm
 
 _svcadm() {
-	local context state line subcmds
+	local curcontext="$curcontext" state line expl subcmds
 	typeset -A opt_args
 
 	subcmds=( enable disable restart refresh mark delegate clear milestone )
diff --git a/Completion/Solaris/Command/_svccfg b/Completion/Solaris/Command/_svccfg
index 08c5e4bcd..d31682e77 100644
--- a/Completion/Solaris/Command/_svccfg
+++ b/Completion/Solaris/Command/_svccfg
@@ -14,7 +14,7 @@ _svccfg_properties() {
 	# Get all the property names for the FMRI
 	props=( ${${${(f)"$(svccfg -s $fmri describe)"}:# *}%% *} )
 
-	_multi_parts "$expl[@]" - / props
+	_multi_parts "$@" - / props
 }
 
 _svccfg() {
diff --git a/Completion/Solaris/Type/_svcs_fmri b/Completion/Solaris/Type/_svcs_fmri
index 80d3516c0..ffade6985 100644
--- a/Completion/Solaris/Type/_svcs_fmri
+++ b/Completion/Solaris/Type/_svcs_fmri
@@ -2,7 +2,7 @@
 
 _svcs_fmri() {
 	local type="$argv[$#]"
-	local fmri_abbrevs m i
+	local fmri_abbrevs m i expl
 	typeset -a -g _smf_fmris
 
 	local update_policy