Page MenuHomeFreeBSD

D52495.id161935.diff
No OneTemporary

D52495.id161935.diff

diff --git a/usr.bin/sed/main.c b/usr.bin/sed/main.c
--- a/usr.bin/sed/main.c
+++ b/usr.bin/sed/main.c
@@ -198,7 +198,7 @@
usage(void)
{
(void)fprintf(stderr,
- "usage: %s script [-Ealnru] [-i extension] [file ...]\n"
+ "usage: %s [-Ealnru] [-i extension] command [file ...]\n"
"\t%s [-Ealnu] [-i extension] [-e script] ... [-f script_file]"
" ... [file ...]\n", getprogname(), getprogname());
exit(1);
diff --git a/usr.bin/sed/sed.1 b/usr.bin/sed/sed.1
--- a/usr.bin/sed/sed.1
+++ b/usr.bin/sed/sed.1
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd June 14, 2025
+.Dd September 11, 2025
.Dt SED 1
.Os
.Sh NAME
@@ -40,9 +40,9 @@
.Sh SYNOPSIS
.Nm
.Op Fl Ealnru
-.Ar command
.Op Fl I Ar extension
.Op Fl i Ar extension
+.Ar command
.Op Ar
.Nm
.Op Fl Ealnru
@@ -58,13 +58,16 @@
are specified, modifying the input as specified by a list of commands.
The input is then written to the standard output.
.Pp
-A single command may be specified as the first argument to
+A single command may be specified as the first non-option argument to
.Nm .
Multiple commands may be specified by using the
.Fl e
or
.Fl f
-options.
+options, either of which will cause
+.Nm
+to instead intrepret the first non-option argument as a
+.Ar file .
All commands are applied to the input in the order they are specified
regardless of their origin.
.Pp

File Metadata

Mime Type
text/plain
Expires
Thu, May 14, 8:31 PM (19 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33059571
Default Alt Text
D52495.id161935.diff (1 KB)

Event Timeline