[hackers] [sbase] ed: Don't show '!' in exec with -s || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 2 Jan 2016 10:47:09 +0100 (CET)

commit 6630bd97cf73d6233cd9c5905f7edc8e4657ff27
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Fri Jan 1 17:40:33 2016 +0100
Commit: sin <sin_AT_2f30.org>
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
_AT_@ -871,7 +871,8 @@ execsh(void)
         if (repl)
                 puts(cmd);
         system(cmd);
- puts("!");
+ if (optdiag)
+ puts("!");
 }
 
 static void
Received on Sat Jan 02 2016 - 10:47:09 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 02 2016 - 10:48:15 CET