shithub: neatroff

Download patch

ref: c5968d534ca4e938606f5368c94c9a9708751f3e
parent: 05da336cb5969ce266a6188fc4ec48c1f8dfdfd7
author: Ali Gholami Rudi <[email protected]>
date: Wed May 9 20:52:49 EDT 2018

tr: ".if ! " should succeed

Reported by aksr <[email protected]>.

--- a/tr.c
+++ b/tr.c
@@ -296,6 +296,8 @@
 	back(c);
 	if (strchr("oetn", c)) {
 		ret = if_cond(next, back);
+	} else if (c == ' ') {
+		ret = 0;
 	} else if (!isdigit(c) && !strchr("-+*/%<=>&:.|()", c)) {
 		ret = if_strcmp(next, back);
 	} else {