At Mon, 30 Sep 2024 20:39:47 +0000 (UTC), RVP <[email protected]> wrote: Subject: Re: interactive shell detection in shrc > > and also by programs which start a shell in a pty: xterm/script/tmux/... > However, xterm _doesn't_ set SHELL if what was passed is not in /etc/shells:
That situation is also entirely out of scope for this issue. That's
either a system misconfiguration, or a feature, as documented clearly in
xterm(1):
Xterm validates shell programs by finding their pathname in the
text file /etc/shells. It treats the environment variable
“SHELL” specially because (like “TERM”), xterm both reads and
updates the variable, and because the program started by xterm
is not necessarily a shell.
--
Greg A. Woods <[email protected]>
Kelowna, BC +1 250 762-7675 RoboHack <[email protected]>
Planix, Inc. <[email protected]> Avoncote Farms <[email protected]>
pgpVWpSfLLfrC.pgp
Description: OpenPGP Digital Signature
