sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 2fc73e410c13ef5ea8157b9654b76efd2c6e0e1e
parent 10b57e8a3dbdff764c72ac5ae4c4190a703a8f13
Author: sin <sin@2f30.org>
Date:   Tue, 21 Apr 2015 17:59:08 +0100

xargs: Don't print trailing spaces when -t is set

Diffstat:
Mxargs.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/xargs.c b/xargs.c @@ -160,12 +160,15 @@ static void spawn(void) { int savederrno; + int first = 1; char **p; if (tflag) { for (p = cmd; *p; p++) { + if (!first) + fputc(' ', stderr); fputs(*p, stderr); - fputc(' ', stderr); + first = 0; } fputc('\n', stderr); }