From: Karel Zak Date: Thu, 16 Apr 2026 12:24:42 +0000 (+0200) Subject: scriptlive: update shell selection documentation X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=cfeb02972b50251fc3b64da7b3bf5c42290e8d43;p=thirdparty%2Futil-linux.git scriptlive: 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. Add missing SHELL entry to the ENVIRONMENT section. Addresses: https://github.com/util-linux/util-linux/issues/4242 Signed-off-by: Karel Zak --- diff --git a/term-utils/scriptlive.1.adoc b/term-utils/scriptlive.1.adoc index c8ce4428f..590d6e574 100644 --- a/term-utils/scriptlive.1.adoc +++ b/term-utils/scriptlive.1.adoc @@ -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.