summaryrefslogtreecommitdiffstats
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@ipost.com>2020-12-17 21:08:47 -0800
committerBart Schaefer <schaefer@ipost.com>2021-04-13 21:18:35 -0700
commitdcd4439a9f3a2212d753ece6ef644aed2ec4d333 (patch)
treeec72325d2e9e2b44d817161a6a1741434ad8f394 /Src
parentMake DECLAREDNULL require POSIXBUILTINS and introduce a new test file. (diff)
downloadzsh-dcd4439a9f3a2212d753ece6ef644aed2ec4d333.tar
zsh-dcd4439a9f3a2212d753ece6ef644aed2ec4d333.tar.gz
zsh-dcd4439a9f3a2212d753ece6ef644aed2ec4d333.tar.bz2
zsh-dcd4439a9f3a2212d753ece6ef644aed2ec4d333.tar.lz
zsh-dcd4439a9f3a2212d753ece6ef644aed2ec4d333.tar.xz
zsh-dcd4439a9f3a2212d753ece6ef644aed2ec4d333.tar.zst
zsh-dcd4439a9f3a2212d753ece6ef644aed2ec4d333.zip
Missed files from POSXIBUILTINS commit
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c5
1 files changed, 3 insertions, 2 deletions
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;