Subject: bin/2518: ex -s is no longer silent
To: None <gnats-bugs@NetBSD.ORG>
From: Lennart Augustsson <augustss@cs.chalmers.se>
List: netbsd-bugs
Date: 06/05/1996 07:38:36
>Number: 2518
>Category: bin
>Synopsis: ex -s is no longer silent
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 5 02:05:03 1996
>Last-Modified:
>Originator: Lennart Augustsson
>Organization:
Chalmers Univ, CS Dept
>Release: 1.2_ALPHA
>Environment:
System: NetBSD calvin.cs.chalmers.se 1.2_ALPHA NetBSD 1.2_ALPHA (CALVIN) #6: Tue Jun 4 18:07:38 MET DST 1996 augustss@calvin.cs.chalmers.se:/usr/src/sys/arch/i386/compile/CALVIN i386
>Description:
The command `ex -s file' should according to the man page
produce no diagnostics, but it does.
>How-To-Repeat:
Try `ex -s'.
>Fix:
Apply this atch:
*** usr.bin/vi/ex/ex.c.old Tue Jun 4 23:32:00 1996
--- usr.bin/vi/ex/ex.c Tue Jun 4 23:32:30 1996
***************
*** 92,98 ****
/* Display status line and flush. */
if (F_ISSET(sp, SC_STATUS)) {
F_CLR(sp, SC_STATUS);
! msgq_status(sp, sp->lno, 0);
}
(void)ex_fflush(sp);
--- 92,99 ----
/* Display status line and flush. */
if (F_ISSET(sp, SC_STATUS)) {
F_CLR(sp, SC_STATUS);
! if (!F_ISSET(sp, SC_EX_SILENT))
! msgq_status(sp, sp->lno, 0);
}
(void)ex_fflush(sp);
>Audit-Trail:
>Unformatted: