git: 8e096e24d434 - main - script: Correct -F in man page and usage string.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Oct 2022 14:46:38 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=8e096e24d4344b6d3d16e24d58d5d8a0fa9733c9
commit 8e096e24d4344b6d3d16e24d58d5d8a0fa9733c9
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2022-10-26 18:08:12 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2022-10-27 14:46:09 +0000
script: Correct -F in man page and usage string.
Sponsored by: Klara, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D37138
---
usr.bin/script/script.1 | 7 +++----
usr.bin/script/script.c | 2 +-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/usr.bin/script/script.1 b/usr.bin/script/script.1
index 36523148fa90..350a5e791e81 100644
--- a/usr.bin/script/script.1
+++ b/usr.bin/script/script.1
@@ -28,7 +28,7 @@
.\" @(#)script.1 8.1 (Berkeley) 6/6/93
.\" $FreeBSD$
.\"
-.Dd March 9, 2022
+.Dd October 26, 2022
.Dt SCRIPT 1
.Os
.Sh NAME
@@ -36,8 +36,7 @@
.Nd make typescript of terminal session
.Sh SYNOPSIS
.Nm
-.Op Fl aefkqr
-.Op Fl F Ar pipe
+.Op Fl aeFfkqr
.Op Fl t Ar time
.Op Ar file Op Ar command ...
.Nm
@@ -88,7 +87,7 @@ Accepted for compatibility with
.Nm .
The child command exit status is always the exit status of
.Nm .
-.It Fl F Ar pipe
+.It Fl F
Immediately flush output after each write.
This will allow a user to create a named pipe using
.Xr mkfifo 1
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index 430f48ad63df..e947bac17f2e 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -366,7 +366,7 @@ static void
usage(void)
{
(void)fprintf(stderr,
- "usage: script [-adfkpqr] [-t time] [file [command ...]]\n");
+ "usage: script [-adFfkpqr] [-t time] [file [command ...]]\n");
exit(1);
}