1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 16:50:58 +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

@ -2479,8 +2479,10 @@ bin_typeset(char *name, char **argv, Options ops, int func)
if (OPT_ISSET(ops,'p')) {
if (hn)
printparamnode(hn, printflags);
else
else {
zwarnnam(name, "no such variable: %s", asg->name);
returnval = 1;
}
continue;
}
if (!typeset_single(name, asg->name, (Param)hn,