[hackers] [sbase][PATCH] Fix 'w' command not respecting '-s' option

From: Andrea Calligaris <recluse_AT_email.it>
Date: Wed, 8 Feb 2023 17:35:08 +0100

---
 ed.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ed.c b/ed.c
index 8a0604e..b661ac5 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -642,7 +642,8 @@ dowrite(const char *fname, int trunc)
 	strcpy(savfname, fname);
 	modflag = 0;
 	curln = line;
-	printf("%zu\n", bytecount);
+	if (optdiag)
+		printf("%zu\n", bytecount);
 }
 
 static void
-- 
2.25.1
Received on Wed Feb 08 2023 - 17:35:08 CET

This archive was generated by hypermail 2.3.0 : Wed Feb 08 2023 - 17:48:40 CET