From 6630bd97cf73d6233cd9c5905f7edc8e4657ff27 Mon Sep 17 00:00:00 2001 From: "Roberto E. Vargas Caballero" Date: Fri, 1 Jan 2016 17:40:33 +0100 Subject: [PATCH] ed: Don't show '!' in exec with -s 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 @@ -871,7 +871,8 @@ execsh(void) if (repl) puts(cmd); system(cmd); - puts("!"); + if (optdiag) + puts("!"); } static void