[hackers] [sbase][PATCH 2/3] ed: Don't show '!' in exec with -s

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Fri, 1 Jan 2016 17:40:33 +0100

POSIX indicates that this '!' is a diagnosis
that must not be printed when -s is supplied.
---
 ed.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ed.c b/ed.c
index 96cfc3b..5369d60 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -871,7 +871,8 @@ execsh(void)
 	if (repl)
 		puts(cmd);
 	system(cmd);
-	puts("!");
+	if (optdiag)
+		puts("!");
 }
 
 static void
-- 
2.1.4
Received on Fri Jan 01 2016 - 17:40:33 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 01 2016 - 17:48:21 CET