[Toybox] Patch paste
Hyejin Kim
hj8296 at gmail.com
Tue Jun 2 19:15:36 PDT 2015
Hi
_paste_ prints output improperly now.
so, fix it over comparing the behavior from gnu.
Thanks.
diff --git a/toys/posix/paste.c b/toys/posix/paste.c
index 0e170cd..2e497ea 100644
--- a/toys/posix/paste.c
+++ b/toys/posix/paste.c
@@ -92,7 +92,7 @@ void paste_main(void)
break;
}
}
- if (anyopen) putchar((i + 1 == toys.optc) ? toybuf[i % ndelim] :
'\n');
+ if (anyopen) putchar((i + 1 == toys.optc) ? '\n' : toybuf[i %
ndelim]);
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20150603/b5a1690e/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-paste-fix-basic-behavior-of-output.patch
Type: application/octet-stream
Size: 689 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20150603/b5a1690e/attachment-0004.obj>
More information about the Toybox
mailing list