From 72a67716aca9896cb75a2b92457fdaed060d8e9e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 20 Nov 2015 11:18:16 +0000 Subject: 20974: Bug with scalar assignment to special array in typeset --- Test/D04parameter.ztst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Test') 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 -- cgit 1.4.1