about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-09-13 19:59:13 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-09-13 19:59:13 +0000
commitb8a36eea87836c8156e4d3d587cb57252e02c7a2 (patch)
treeb14787450931a0dd4008a39db358f73204e11a5f /Test
parent6b68cc95c7448201d11b87004715fd8e8cd6543e (diff)
downloadzsh-b8a36eea87836c8156e4d3d587cb57252e02c7a2.tar.gz
zsh-b8a36eea87836c8156e4d3d587cb57252e02c7a2.tar.xz
zsh-b8a36eea87836c8156e4d3d587cb57252e02c7a2.zip
25662: declare -p should never create arguments
Diffstat (limited to 'Test')
-rw-r--r--Test/B02typeset.ztst9
1 files changed, 9 insertions, 0 deletions
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