diff --git a/usr.bin/script/script.1 b/usr.bin/script/script.1 index fc138d83f907..b5e8f90f4a0f 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 149458baa331..c70fbb9f9d2b 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;