ed: Don't show '!' in exec with -s

POSIX indicates that this '!' is a diagnosis
that must not be printed when -s is supplied.
This commit is contained in:
Roberto E. Vargas Caballero 2016-01-01 17:40:33 +01:00 committed by sin
parent b2ef7e73e0
commit 6630bd97cf

1
ed.c
View File

@ -871,6 +871,7 @@ execsh(void)
if (repl)
puts(cmd);
system(cmd);
if (optdiag)
puts("!");
}