From b8a36eea87836c8156e4d3d587cb57252e02c7a2 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 13 Sep 2008 19:59:13 +0000 Subject: 25662: declare -p should never create arguments --- Test/B02typeset.ztst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Test/B02typeset.ztst') diff --git a/Test/B02typeset.ztst b/Test/B02typeset.ztst index 34e2dab26..abb549ed6 100644 --- a/Test/B02typeset.ztst +++ b/Test/B02typeset.ztst @@ -444,3 +444,12 @@ 0:Lower case conversion, does not apply to values used internally >lower >value of $lower + + typeset -a array + array=(foo bar) + fn() { typeset -p array nonexistent; } + fn +0:declare -p shouldn't create scoped values +>typeset -a array +>array=(foo bar) +?fn:typeset: no such variable: nonexistent -- cgit 1.4.1