diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-13 19:59:13 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-13 19:59:13 +0000 |
| commit | b8a36eea87836c8156e4d3d587cb57252e02c7a2 (patch) | |
| tree | b14787450931a0dd4008a39db358f73204e11a5f /Test | |
| parent | 25656: free val only after it may be passed to strlen(). (diff) | |
| download | zsh-b8a36eea87836c8156e4d3d587cb57252e02c7a2.tar zsh-b8a36eea87836c8156e4d3d587cb57252e02c7a2.tar.gz zsh-b8a36eea87836c8156e4d3d587cb57252e02c7a2.tar.bz2 zsh-b8a36eea87836c8156e4d3d587cb57252e02c7a2.tar.lz zsh-b8a36eea87836c8156e4d3d587cb57252e02c7a2.tar.xz zsh-b8a36eea87836c8156e4d3d587cb57252e02c7a2.tar.zst zsh-b8a36eea87836c8156e4d3d587cb57252e02c7a2.zip | |
25662: declare -p should never create arguments
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/B02typeset.ztst | 9 |
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 |
