diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2008-10-01 09:03:28 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2008-10-01 09:03:28 +0000 |
commit | 765b3cd9258daeae0440e47e4b39a9b5909f1f88 (patch) | |
tree | f380a3ea5b9c7359bd0baf31ba13c26cf0528634 /bin/ed/ed.1 | |
parent | cc549c00ad3eed2dc599f49e1f42bda12fe7882d (diff) |
for the `g' and `G' commands, document that if no lines match
the regular expression then the current line number remains unchanged;
Diffstat (limited to 'bin/ed/ed.1')
-rw-r--r-- | bin/ed/ed.1 | 8 |
1 files changed, 6 insertions, 2 deletions
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 |