ref: cd3679783e1566332abcfb4683292e9350cffa39
parent: f6e18c39070cc5c9d51d5aec71539eda66efcdf7
author: Ali Gholami Rudi <ali@rudi.ir>
date: Mon Nov 26 16:23:32 EST 2012
tr: insert newlines only once in .de
--- a/tr.c
+++ b/tr.c
@@ -110,7 +110,6 @@
while ((c = cp_next()) >= 0) {
sbuf_add(&sbuf, c);
if (c == '\n') {
- sbuf_add(&sbuf, c);
c = cp_next();
if (c == '.') {
arg_regname(buf, 4);