From 8e90d2018cc807e9381330783d923b4efaee9786 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 1 Aug 2002 15:06:25 +0000 Subject: Dan Nelson: 17492: Quote output from xtrace --- Src/cond.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Src/cond.c') diff --git a/Src/cond.c b/Src/cond.c index 4a4dc24ed..4cc516924 100644 --- a/Src/cond.c +++ b/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) { -- cgit v1.2.3