1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 05:00:59 +01:00

25671: non existing variable in typeset -p should cause status 1

This commit is contained in:
Peter Stephenson 2008-09-15 08:57:25 +00:00
parent 06cc84ce84
commit 6951a1e0b2
3 changed files with 9 additions and 2 deletions

View file

@ -449,7 +449,7 @@
array=(foo bar)
fn() { typeset -p array nonexistent; }
fn
0:declare -p shouldn't create scoped values
1:declare -p shouldn't create scoped values
>typeset -a array
>array=(foo bar)
?fn:typeset: no such variable: nonexistent