1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +02:00

Dan Nelson: 17492: Quote output from xtrace

This commit is contained in:
Peter Stephenson 2002-08-01 15:06:25 +00:00
parent ef74d743a0
commit 8e90d2018c
3 changed files with 26 additions and 13 deletions

View file

@ -147,9 +147,14 @@ evalcond(Estate state)
singsub(&rt);
untokenize(rt);
}
fprintf(xtrerr, " %s %s %s", left, condstr[ctype], rt);
} else
fprintf(xtrerr, " -%c %s", ctype, left);
fputc(' ',xtrerr);
quotedzputs(left, xtrerr);
fprintf(xtrerr, " %s ", condstr[ctype]);
quotedzputs(rt, xtrerr);
} else {
fprintf(xtrerr, " -%c ", ctype);
quotedzputs(left, xtrerr);
}
}
if (ctype >= COND_EQ && ctype <= COND_GE) {