From 2eb9289d1277bf71b1b9dea2addbddd36b61f276 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Thu, 17 Dec 2020 21:08:47 -0800 Subject: Missed files from POSXIBUILTINS commit --- Src/builtin.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Src') diff --git a/Src/builtin.c b/Src/builtin.c index 8d8ff68e0..b0d4eb7f7 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -2491,7 +2491,8 @@ typeset_single(char *cname, char *pname, Param pm, UNUSED(int func), return NULL; } } - pm->node.flags |= PM_DECLAREDNULL; + if (isset(POSIXBUILTINS)) + pm->node.flags |= PM_DECLAREDNULL; } else { if (idigit(*pname)) zerrnam(cname, "not an identifier: %s", pname); @@ -2891,7 +2892,7 @@ bin_typeset(char *name, char **argv, LinkList assigns, Options ops, int func) * Don't attempt to set it yet, it's too early * to be exported properly. * - * This creates the array with PM_DECLAREDNULL. + * This may create the array with PM_DECLAREDNULL. */ asg2.name = asg->name; asg2.flags = 0; -- cgit 1.4.1