Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156462355
D52495.id161935.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D52495.id161935.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D52495: sed: bring usage back into line with reality
Attached
Detach File
Event Timeline
Log In to Comment