diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2002-08-01 15:06:25 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2002-08-01 15:06:25 +0000 |
commit | 8e90d2018cc807e9381330783d923b4efaee9786 (patch) | |
tree | 8a08f5cea02bb471095f5e5d605f705c37d68f6f /Src/builtin.c | |
parent | ef74d743a0b5446376de4e40583968696bb703b3 (diff) | |
download | zsh-8e90d2018cc807e9381330783d923b4efaee9786.tar.gz zsh-8e90d2018cc807e9381330783d923b4efaee9786.tar.xz zsh-8e90d2018cc807e9381330783d923b4efaee9786.zip |
Dan Nelson: 17492: Quote output from xtrace
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 12 |
1 files changed, 8 insertions, 4 deletions
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); } |