1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-28 16:15:02 +01:00

Update version number for wordcode incompatibility.

Fix null dereference in tie code.

Add export to typeset reserved words.

Note "export FOO foo=(stuff here)" still doesn't do the export:
there's an ordering problem that needs fixing.
This commit is contained in:
Peter Stephenson 2015-06-19 12:48:33 +01:00
parent e03ead4fff
commit 9b730849ab
3 changed files with 4 additions and 3 deletions

View file

@ -27,5 +27,5 @@
# This must also serve as a shell script, so do not add spaces around the
# `=' signs.
VERSION=5.0.8-dev-0
VERSION_DATE='June 1, 2015'
VERSION=5.0.8-dev-1
VERSION_DATE='June 19, 2015'

View file

@ -2587,7 +2587,7 @@ bin_typeset(char *name, char **argv, LinkList assigns, Options ops, int func)
*/
if (*argv)
joinstr = *argv;
else if (assigns) {
else if (assigns && firstnode(assigns)) {
Asgment nextasg = (Asgment)firstnode(assigns);
if (ASG_ARRAYP(nextasg) || ASG_VALUEP(nextasg)) {
zwarnnam(name, "third argument of tie must be join character");

View file

@ -1057,6 +1057,7 @@ static struct reswd reswds[] = {
{{NULL, "else", 0}, ELSE},
{{NULL, "end", 0}, ZEND},
{{NULL, "esac", 0}, ESAC},
{{NULL, "export", 0}, TYPESET},
{{NULL, "fi", 0}, FI},
{{NULL, "for", 0}, FOR},
{{NULL, "foreach", 0}, FOREACH},