1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-14 10:40:54 +01:00

43656: special tied arrays don't have tieddata

This commit is contained in:
Peter Stephenson 2018-10-09 11:21:47 +01:00
parent afee3c9a19
commit 9ede8c657f
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2018-10-09 Peter Stephenson <p.stephenson@samsung.com>
* 43656: Src/builtin.c: special tied parameters don't have
tieddata.
* unposted: Test/C03traps.ztst: addition to previous test
suggested by Mikael.

View file

@ -2258,7 +2258,7 @@ typeset_single(char *cname, char *pname, Param pm, UNUSED(int func),
} else if (pm->env && !(pm->node.flags & PM_HASHELEM))
delenv(pm);
DPUTS(ASG_ARRAYP(asg), "BUG: typeset got array value where scalar expected");
if (altpm) {
if (altpm && !(pm->node.flags & PM_SPECIAL)) {
struct tieddata* tdp = (struct tieddata *) pm->u.data;
if (tdp) {
if (tdp->joinchar != joinchar && !asg->value.scalar) {