summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2006-10-26 20:19:12 +0000
committerjmc <jmc@openbsd.org>2006-10-26 20:19:12 +0000
commit24ce971870a9d060425047c32ba73d6e0e6e56d9 (patch)
tree22c3844a504e6a5963f68580bdc01233a602ad38
parentmore Nd tidy up for usb devices; (diff)
downloadwireguard-openbsd-24ce971870a9d060425047c32ba73d6e0e6e56d9.tar.xz
wireguard-openbsd-24ce971870a9d060425047c32ba73d6e0e6e56d9.zip
- document that multiple commands may be newline or semicolon separated
- refer to latest posix revision - note that -a and newline-separated multiple commands are non-portable - note which commands do not permit being specified separated by semicolons based around pr 5269, from tilo stritzky much help/ok otto
-rw-r--r--usr.bin/sed/sed.128
1 files changed, 24 insertions, 4 deletions
diff --git a/usr.bin/sed/sed.1 b/usr.bin/sed/sed.1
index 2134c44c267..3e26926d95c 100644
--- a/usr.bin/sed/sed.1
+++ b/usr.bin/sed/sed.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sed.1,v 1.24 2006/10/24 11:46:53 jmc Exp $
+.\" $OpenBSD: sed.1,v 1.25 2006/10/26 20:19:12 jmc Exp $
.\"
.\" Copyright (c) 1992, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -57,7 +57,9 @@ The input is then written to the standard output.
.Pp
A single command may be specified as the first argument to
.Nm sed .
-Multiple commands may be specified by using the
+Multiple commands may be specified
+separated by newlines or semicolons,
+or by using the
.Fl e
or
.Fl f
@@ -502,11 +504,29 @@ option on the command line.
.Sh STANDARDS
The
.Nm
-function is expected to be a superset of the
-.St -p1003.2
+utility is compliant with the
+.St -p1003.1-2004
specification.
+.Pp
+The flag
+.Op Fl a
+is an extension to the specification.
+.Pp
+The use of newlines to separate multiple commands on the command line
+is non-portable;
+the use of newlines to separate multiple commands within a command file
+.Pq Fl f Ar command_file
+is portable.
.Sh HISTORY
A
.Nm
command appeared in
.At v7 .
+.Sh CAVEATS
+The use of semicolons to separate multiple commands
+is not permitted for the following commands:
+.Cm a , b , c ,
+.Cm i , r , t ,
+.Cm w , \&: ,
+and
+.Cm # .