sbase

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

commit f242473831ce1bfe783643b7d84a7c34943a6b11
parent d58334916a7ddc20ea431ebbc8cb7ae711c00c22
Author: sin <sin@2f30.org>
Date:   Tue Apr 21 17:59:08 +0100

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

Diffstat:
xargs.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); }