summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-11-20 11:18:16 +0000
committerPeter Stephenson <pws@zsh.org>2015-11-20 11:18:16 +0000
commit72a67716aca9896cb75a2b92457fdaed060d8e9e (patch)
treec363f3aa4d587bed22ea3737da1b7f666e96bcd9 /Test
parentc563f1ba83c40aab632ac958a1d3a57277ca22cc (diff)
downloadzsh-72a67716aca9896cb75a2b92457fdaed060d8e9e.tar.gz
zsh-72a67716aca9896cb75a2b92457fdaed060d8e9e.zip
20974: Bug with scalar assignment to special array in typeset
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst19
1 files changed, 19 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 210c0d854..a3c5d71df 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -1847,3 +1847,22 @@
0:nested parameter name references
>all these worlds belong to foo
>worlds
+
+ (
+ path=(/random /value)
+ testfn1() {
+ local path=
+ print $#path
+ }
+ testfn1
+ testfn2() {
+ local path=/somewhere
+ print $#path $path
+ }
+ testfn2
+ print $#path $path
+ )
+0:Local special variables with loose typing
+>0
+>1 /somewhere
+>2 /random /value