commit 6630bd97cf73d6233cd9c5905f7edc8e4657ff27
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Fri Jan 1 17:40:33 2016 +0100
Commit:     sin <[email protected]>
CommitDate: Sat Jan 2 09:46:48 2016 +0000

    ed: Don't show '!' in exec with -s
    
    POSIX indicates that this '!' is a diagnosis
    that must not be printed when -s is supplied.

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

Reply via email to