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:
parent
ef74d743a0
commit
8e90d2018c
3 changed files with 26 additions and 13 deletions
11
Src/cond.c
11
Src/cond.c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue