]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
script: update shell selection documentation
authorKarel Zak <kzak@redhat.com>
Thu, 16 Apr 2026 12:24:08 +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.

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

index 67b8f81301cad58b984e65e5e47edb1c5e8cd3be..c41198f30e902cd039dd5e908b191b6948082fa2 100644 (file)
@@ -133,7 +133,7 @@ Upon receiving *SIGUSR1*, *script* immediately flushes the output files.
 Enable script debug output.
 
 *SHELL*::
-Override the default shell. If *SHELL* is not set, the Bourne shell is assumed. (Most shells set this variable automatically).
+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.
 
 *ULPTY_DEBUG*=all::
 Enable pty debug output.