1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 15:01:21 +02:00

22988: arno: _make fix for special variables

This commit is contained in:
Peter Stephenson 2006-11-09 10:52:45 +00:00
parent aa2ae64dff
commit 434d55da8b
2 changed files with 9 additions and 0 deletions

@ -1,3 +1,10 @@
2006-11-09 Peter Stephenson <pws@csr.com>
* 22988: arno: Completion/Unix/Command/_make: failed on
special variable names, so use local -h. Probably not a
complete fix since the function can run recursivesly for
include directives which should use the same namespace.
2006-11-08 Peter Stephenson <pws@csr.com>
* 22983: Src/builtin.c, Src/init.c: exit could loop for ever

@ -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:=]#:[^=]*)