From b28a6365f6ea5a9fdb8b63dd1612f55eb4034990 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 6 Dec 2013 09:47:28 +0200 Subject: 32091: WARN_CREATE_GLOBAL false positive. In cases like () { foo=bar =true; } --- Test/E01options.ztst | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Test') diff --git a/Test/E01options.ztst b/Test/E01options.ztst index e00eb0e9c..d9f219115 100644 --- a/Test/E01options.ztst +++ b/Test/E01options.ztst @@ -83,12 +83,13 @@ %prep mkdir options.tmp && cd options.tmp - mkdir tmpcd + mkdir tmpcd homedir touch tmpfile1 tmpfile2 mydir=$PWD mydirt=`print -P %~` + mydirhome=`export HOME=$mydir/homedir; print -P %~` catpath=$(which cat) lspath==ls @@ -513,10 +514,10 @@ print *(#q:s/#(#b)tmp(*e)/'scrunchy${match[1]}'/) unsetopt histsubstpattern 0:HIST_SUBST_PATTERN option ->TINGcd TINGfile1 TINGfile2 +>TINGcd TINGfile1 TINGfile2 homedir >THUMPcd THUMPfile1 THUMPfile2 >one.c Two.X Three.X ->scrunchyfile1 scrunchyfile2 tmpcd +>homedir scrunchyfile1 scrunchyfile2 tmpcd setopt ignorebraces echo X{a,b}Y @@ -853,6 +854,7 @@ # Do you have any idea how dull this is? + (export HOME=$mydir/homedir pushd $mydir/tmpcd pushd dirs @@ -863,11 +865,11 @@ popd pushd popd - dirs + dirs) 0q:PUSHD_TO_HOME option ->$mydirt $mydirt/tmpcd ->~ $mydirt $mydirt/tmpcd ->$mydirt +>$mydirhome $mydirhome/tmpcd +>~ $mydirhome $mydirhome/tmpcd +>$mydirhome array=(one two three four) setopt rcexpandparam @@ -1067,6 +1069,7 @@ fn2() { foo3=bar6 } + foo4=bar7 =true } fn 0:WARN_CREATE_GLOBAL option -- cgit 1.4.1