about summary refs log tree commit diff
path: root/Completion/Unix/Command/_make
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-11-09 10:52:45 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-11-09 10:52:45 +0000
commit434d55da8b2b52da5c22f918cb182839b4b7222d (patch)
tree4ece46825c723a0dc0d966baa3c32557d837f9cc /Completion/Unix/Command/_make
parentaa2ae64dff6d623c4635f108788df126285dbb9d (diff)
downloadzsh-434d55da8b2b52da5c22f918cb182839b4b7222d.tar.gz
zsh-434d55da8b2b52da5c22f918cb182839b4b7222d.tar.xz
zsh-434d55da8b2b52da5c22f918cb182839b4b7222d.zip
22988: arno: _make fix for special variables
Diffstat (limited to 'Completion/Unix/Command/_make')
-rw-r--r--Completion/Unix/Command/_make2
1 files changed, 2 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make
index 76eb43f0a..91c434559 100644
--- a/Completion/Unix/Command/_make
+++ b/Completion/Unix/Command/_make
@@ -60,6 +60,7 @@ parseMakefile() {
 	    var=${input%%[ $TAB]#=*}
 	    val=${input#*=}
 	    val=${val##[ $TAB]#}
+	    local -h $var
 	    eval $var=\$val
 	    ;;
 	([[:alnum:]][[:alnum:]_]#[ $TAB]#:=*)
@@ -67,6 +68,7 @@ parseMakefile() {
 	    val=${input#*=}
 	    val=${val##[ $TAB]#}
 	    val=$(expandVars 10 $val)
+	    local -h $var
 	    eval $var=\$val
 	    ;;
 	([[:alnum:]][^$TAB:=]#:[^=]*)