From 765b3cd9258daeae0440e47e4b39a9b5909f1f88 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Wed, 1 Oct 2008 09:03:28 +0000 Subject: for the `g' and `G' commands, document that if no lines match the regular expression then the current line number remains unchanged; --- bin/ed/ed.1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bin/ed/ed.1') diff --git a/bin/ed/ed.1 b/bin/ed/ed.1 index 391d4397788..1757c9ed00b 100644 --- a/bin/ed/ed.1 +++ b/bin/ed/ed.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ed.1,v 1.51 2007/05/31 19:19:14 jmc Exp $ +.\" $OpenBSD: ed.1,v 1.52 2008/10/01 09:03:27 jmc Exp $ .\" .\" Copyright (c) 1993 Andrew Moore, Talke Studio. .\" All rights reserved. @@ -24,7 +24,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: October 1 2008 $ .Dt ED 1 .Os .Sh NAME @@ -384,6 +384,8 @@ command-list is executed. At the end of the .Ic g command, the current address is set to the last line affected by command-list. +If no lines were matched, +the current line number remains unchanged. .Pp Each command in .Ar command-list @@ -412,6 +414,8 @@ At the end of the command, the current address is set to the last line affected by .Pq the last command-list. +If no lines were matched, +the current line number remains unchanged. .Pp The format of .Ar command-list -- cgit v1.2.3