[dev] [sbase] [PATCH] tr: Fix -c option when translating

From: Michael Forney <mforney_AT_mforney.org>
Date: Mon, 27 Apr 2015 00:49:02 +0000

---
 tr.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/tr.c b/tr.c
index 38ea6a3..ad5c690 100644
--- a/tr.c
+++ b/tr.c
_AT_@ -221,6 +221,8 @@ read:
 				else
 					goto write;
 			}
+			if (cflag)
+				goto write;
 			for (m = 0; m < i; m++)
 				off1 += rangelen(set1[m]);
 			off1 += r - set1[m].start;
-- 
2.1.3.1.g339ec9c
Received on Mon Apr 27 2015 - 02:49:02 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 27 2015 - 03:00:10 CEST