From c6fc7f7b786ce47c35645054cdce73e83f39e7f3 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Sun, 16 Aug 2020 11:46:40 +0000 Subject: 13051 sed: lastline check does not work properly with empty files Reviewed by: Robert Mustacchi Reviewed by: Dominik Hassler Approved by: Gordon Ross --- usr/src/man/man1/sed.1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'usr/src/man/man1/sed.1') diff --git a/usr/src/man/man1/sed.1 b/usr/src/man/man1/sed.1 index b265dc0ba4..9e0d920934 100644 --- a/usr/src/man/man1/sed.1 +++ b/usr/src/man/man1/sed.1 @@ -2,6 +2,7 @@ .\" The Regents of the University of California. All rights reserved. .\" .\" Copyright 2011 Nexenta Systems, Inc. All rights reserved. +.\" Copyright 2020 OmniOS Community Edition (OmniOSce) Association. .\" .\" This code is derived from software contributed to Berkeley by .\" the Institute of Electrical and Electronics Engineers, Inc. @@ -30,7 +31,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.TH SED 1 "Aug 7, 2020" +.TH SED 1 "Aug 21, 2020" .SH NAME \fBsed\fP \- stream editor @@ -148,7 +149,7 @@ option suppresses this behavior. Same as \fB\-E\fP for compatibility with GNU sed. - +.PP The form of a \fBsed\fP command is as follows: @@ -173,6 +174,10 @@ deletes the pattern space. Some of the functions use a .IR "hold space" to save all or part of the pattern space for subsequent retrieval. + +If an input file is growing while sed is running, the +``$'' +address match may be unreliable. .SH "Sed Addresses" An address is not required, but if specified must have one of the following formats: -- cgit v1.2.3