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:
parent
06cc84ce84
commit
6951a1e0b2
3 changed files with 9 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue