]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
scriptlive: update shell selection documentation
authorKarel Zak <kzak@redhat.com>
Thu, 16 Apr 2026 12:24:42 +0000 (14:24 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 16 Apr 2026 12:29:28 +0000 (14:29 +0200)
Document that when $SHELL is not set, the shell from the user's
passwd(5) entry is used before falling back to /bin/sh. Add missing
SHELL entry to the ENVIRONMENT section.

Addresses: https://github.com/util-linux/util-linux/issues/4242
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/scriptlive.1.adoc

index c8ce4428f4609743a2c0ab787512b18be2614b1b..590d6e57491b8720d92decfd88cf823017008e12 100644 (file)
@@ -19,7 +19,7 @@ scriptlive - re-run session typescripts, using timing information
 
 This program re-runs a typescript, using stdin typescript and timing information to ensure that input happens in the same rhythm as it originally appeared when the script was recorded.
 
-The *session is executed* in a newly created pseudoterminal with the user's $SHELL (or defaults to _/bin/bash_).
+The *session is executed* in a newly created pseudoterminal with the user's $SHELL, the shell from the user's passwd(5) entry, or _/bin/sh_ as the fallback.
 
 *Be careful!* The typescript may contain arbitrary commands. It is
 recommended to use *"scriptreplay --stream in --log-in typescript"*
@@ -66,6 +66,9 @@ include::man-common/help-version.adoc[]
 
 == ENVIRONMENT
 
+*SHELL*::
+Override the default shell. If *SHELL* is not set, the shell from the user's passwd(5) entry is used. If no shell is defined there either, _/bin/sh_ is used as the fallback.
+
 *SCRIPTREPLAY_DEBUG*=all::
 Enable scriptreplay debug output.