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/builtin.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index 683cf0506..9bcbbb08f 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -369,10 +369,14 @@ execbuiltin(LinkList args, Builtin bn) if (xtr) { printprompt4(); fprintf(xtrerr, "%s", name); - if (xarg) - fprintf(xtrerr, " %s", xarg); - while (*oargv) - fprintf(xtrerr, " %s", *oargv++); + if (xarg) { + fputc(' ', xtrerr); + quotedzputs(xarg, xtrerr); + } + while (*oargv) { + fputc(' ', xtrerr); + quotedzputs(*oargv++, xtrerr); + } fputc('\n', xtrerr); fflush(xtrerr); } -- cgit v1.2.3