diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-10-22 23:23:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-10-22 23:23:23 +0000 |
commit | a1f0a87d1026a85e723ee049539d0d784ffc2be8 (patch) | |
tree | f73bb9e33a70482657ad36592c34bf26711830f9 /usr.bin/sed/sed.1 | |
parent | d0866eabde99dae2fde1e603dac1206d7f91a8a6 (diff) |
make the description of the syntax of function lists agree
with our actual implementation, which also agrees with POSIX;
triggered by guenther@'s answer to a question from chrisz@;
ok chrisz@ guenther@
Diffstat (limited to 'usr.bin/sed/sed.1')
-rw-r--r-- | usr.bin/sed/sed.1 | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/usr.bin/sed/sed.1 b/usr.bin/sed/sed.1 index 4e78ef2a6ae..91f235d981e 100644 --- a/usr.bin/sed/sed.1 +++ b/usr.bin/sed/sed.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sed.1,v 1.43 2014/05/27 17:45:02 jmc Exp $ +.\" $OpenBSD: sed.1,v 1.44 2014/10/22 23:23:22 schwarze Exp $ .\" .\" Copyright (c) 1992, 1993 .\" The Regents of the University of California. All rights reserved. @@ -32,7 +32,7 @@ .\" .\" from: @(#)sed.1 8.2 (Berkeley) 12/30/93 .\" -.Dd $Mdocdate: May 27 2014 $ +.Dd $Mdocdate: October 22 2014 $ .Dt SED 1 .Os .Sh NAME @@ -268,7 +268,7 @@ Functions can be combined to form a .Em function list , a list of .Nm -functions separated by newlines, as follows: +functions each followed by a newline, as follows: .Bd -literal -offset indent { function function @@ -277,13 +277,8 @@ functions separated by newlines, as follows: } .Ed .Pp -The -.Ql { -can be preceded or followed by whitespace. -The function can be preceded by whitespace as well. -The terminating -.Ql } -must be preceded by a newline or optional whitespace. +The braces can be preceded and followed by whitespace. +The functions can be preceded by whitespace as well. .Pp Functions and function lists may be preceded by an exclamation mark, in which case they are applied only to lines that are |