diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/builtin.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 5ffa7eec2..1c2b37420 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-01-15 Peter Stephenson <p.stephenson@samsung.com> + * 37646: Src/builtin.c, Test/B02typeset.ztst: typeset should + return non-zero status on attempt to set readonly variable. + * 37643: Src/Zle/complist.c: Reset interrupt after getkeycmd() in menu selection. 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); |