commit 6630bd97cf73d6233cd9c5905f7edc8e4657ff27
parent b2ef7e73e007952fc1a4af00d353d51b77587b57
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 1 Jan 2016 17:40:33 +0100
ed: Don't show '!' in exec with -s
POSIX indicates that this '!' is a diagnosis
that must not be printed when -s is supplied.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ed.c b/ed.c
@@ -871,7 +871,8 @@ execsh(void)
if (repl)
puts(cmd);
system(cmd);
- puts("!");
+ if (optdiag)
+ puts("!");
}
static void