diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2013-12-06 09:47:28 +0200 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2013-12-06 09:28:42 +0000 |
commit | b28a6365f6ea5a9fdb8b63dd1612f55eb4034990 (patch) | |
tree | d439bf26b3ba376c2fa8d43eebf20b86f7e60ee4 /Test | |
parent | c1a15fb1522b85a0780ce3f67ec1254115b18501 (diff) | |
download | zsh-b28a6365f6ea5a9fdb8b63dd1612f55eb4034990.tar.gz zsh-b28a6365f6ea5a9fdb8b63dd1612f55eb4034990.tar.xz zsh-b28a6365f6ea5a9fdb8b63dd1612f55eb4034990.zip |
32091: WARN_CREATE_GLOBAL false positive.
In cases like () { foo=bar =true; }
Diffstat (limited to 'Test')
-rw-r--r-- | Test/E01options.ztst | 17 |
1 files changed, 10 insertions, 7 deletions
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 |