1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-12 10:00:56 +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

@ -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) {