From 0194b4ab1d0fc6aeae5416edb0122146da9646c9 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 15 Jan 2016 15:53:39 +0000 Subject: 37646: Return non-zero status from typeset assigning readonly --- Src/builtin.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index e1a799009..dd20f9eab 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -2213,6 +2213,8 @@ typeset_single(char *cname, char *pname, Param pm, UNUSED(int func), mkarray(NULL), 0))) return NULL; } + if (errflag) + return NULL; pm->node.flags |= (on & PM_READONLY); if (OPT_ISSET(ops,'p')) paramtab->printnode(&pm->node, PRINT_TYPESET); -- cgit 1.4.1