Ensure stdout is line buffered.

Change "pat" -> "re" in man page.
This commit is contained in:
Wolfgang Helbig 1997-12-31 12:25:35 +00:00
parent 2b5f493bee
commit fd0e1c252b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=32138
2 changed files with 7 additions and 3 deletions

View File

@ -31,7 +31,7 @@
static char * const rcsid = "@(#)buf.c,v 1.4 1994/02/01 00:34:35 alm Exp";
#else
static char * const rcsid =
"$Id: buf.c,v 1.13 1997/10/08 13:46:39 eivind Exp $";
"$Id: buf.c,v 1.14 1997/10/09 11:05:16 eivind Exp $";
#endif
#endif /* not lint */
@ -268,6 +268,10 @@ init_buffers()
hello, world
EOF */
setbuffer(stdin, stdinbuf, 1);
/* Ensure stdout is line buffered. This avoids bogus delays
of output if stdout is piped through utilities to a terminal. */
setvbuf(stdout, NULL, _IOLBF, 0);
if (open_sbuf() < 0)
quit(2);
REQUE(&buffer_head, &buffer_head);

View File

@ -1,4 +1,4 @@
.\" $Id: ed.1,v 1.10 1997/02/22 14:03:13 peter Exp $
.\" $Id: ed.1,v 1.11 1997/08/30 11:09:26 jmg Exp $
.TH ED 1 "21 May 1993"
.SH NAME
.\" ed, red \- text editor
@ -820,7 +820,7 @@ are treated as a single command by undo.
is its own inverse.
.TP 8
.RI (1,$)v /pat/command-list
.RI (1,$)v /re/command-list
Applies
.I command-list
to each of the addressed lines not matching a regular expression