aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/script
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2020-09-01 16:11:23 +0000
committerWarner Losh <imp@FreeBSD.org>2020-09-01 16:11:23 +0000
commitf9177b6c91b3827e0afac74cd8625f3c36fa0277 (patch)
tree418352d291b3864249b03f0102a0efd5789fb120 /usr.bin/script
parent2e47aedf8618a170154f63abfc21d90e7f5f3985 (diff)
Notes
Diffstat (limited to 'usr.bin/script')
-rw-r--r--usr.bin/script/script.18
-rw-r--r--usr.bin/script/script.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/script/script.1 b/usr.bin/script/script.1
index fc138d83f907b..b5e8f90f4a0fd 100644
--- a/usr.bin/script/script.1
+++ b/usr.bin/script/script.1
@@ -36,7 +36,7 @@
.Nd make typescript of terminal session
.Sh SYNOPSIS
.Nm
-.Op Fl adfkpqr
+.Op Fl adefkpqr
.Op Fl F Ar pipe
.Op Fl t Ar time
.Op Ar file Op Ar command ...
@@ -77,6 +77,12 @@ retaining the prior contents.
When playing back a session with the
.Fl p
flag, do not sleep between records when playing back a timestamped session.
+.It Fl e
+Accepted for compatibility with
+.Em util-linux
+.Nm .
+The child command exit status is always the exit status of
+.Nm .
.It Fl F Ar pipe
Immediately flush output after each write.
This will allow a user to create a named pipe using
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c
index 149458baa331d..c70fbb9f9d2bb 100644
--- a/usr.bin/script/script.c
+++ b/usr.bin/script/script.c
@@ -111,7 +111,7 @@ main(int argc, char *argv[])
warning. (not needed w/clang) */
showexit = 0;
- while ((ch = getopt(argc, argv, "adFfkpqrt:")) != -1)
+ while ((ch = getopt(argc, argv, "adeFfkpqrt:")) != -1)
switch(ch) {
case 'a':
aflg = 1;
@@ -119,6 +119,8 @@ main(int argc, char *argv[])
case 'd':
usesleep = 0;
break;
+ case 'e': /* Default behaior, accepted for linux compat */
+ break;
case 'F':
Fflg = 1;
break;