diff options
author | 2014-05-26 14:52:13 +0000 | |
---|---|---|
committer | 2014-05-26 14:52:13 +0000 | |
commit | d897b5cba03b9ba9901d8a4f4eea7e69bf8900b9 (patch) | |
tree | c85cf88b713deabfc3eed154ec91d0ee1be91648 | |
parent | remove the ugly hack that saw two It macros used to render one item; replace (diff) | |
download | wireguard-openbsd-d897b5cba03b9ba9901d8a4f4eea7e69bf8900b9.tar.xz wireguard-openbsd-d897b5cba03b9ba9901d8a4f4eea7e69bf8900b9.zip |
posix does not count `!' as a separate function, and neither should we;
instead, move the description of this mechanism into the general SED
FUNCTIONS section;
-rw-r--r-- | usr.bin/sed/sed.1 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/sed/sed.1 b/usr.bin/sed/sed.1 index 5a50ce00772..835c73db52e 100644 --- a/usr.bin/sed/sed.1 +++ b/usr.bin/sed/sed.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sed.1,v 1.37 2014/05/26 14:42:32 jmc Exp $ +.\" $OpenBSD: sed.1,v 1.38 2014/05/26 14:52:13 jmc Exp $ .\" .\" Copyright (c) 1992, 1993 .\" The Regents of the University of California. All rights reserved. @@ -276,6 +276,11 @@ The function can be preceded by whitespace as well. The terminating .Ql } must be preceded by a newline or optional whitespace. +.Pp +Functions and function-lists may be preceded by an exclamation mark, +in which case they are applied only to lines that are +.Em not +selected by the addresses. .Bl -tag -width Ds .It [2addr] Ar function-list Execute @@ -469,10 +474,6 @@ a backslash followed by any character other than a newline is that literal character, and a backslash followed by an .Sq n is replaced by a newline character. -.It [2addr] Ns Ic \&! Ns Ar function , [2addr] Ns Ic \&! Ns Ar function-list -Apply the function or function-list only to the lines that are -.Em not -selected by the address(es). .It [0addr] Ns Ic \&: Ns Ar label This function does nothing; it bears a .Ar label |