From: Karel Zak Date: Thu, 16 Apr 2026 12:24:08 +0000 (+0200) Subject: script: update shell selection documentation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=772778659e408d005952f348e6fcd1325505e1c2;p=thirdparty%2Futil-linux.git script: update shell selection documentation 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 --- diff --git a/term-utils/script.1.adoc b/term-utils/script.1.adoc index 67b8f8130..c41198f30 100644 --- a/term-utils/script.1.adoc +++ b/term-utils/script.1.adoc @@ -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.