Re: interactive shell detection in shrc

"Greg A. Woods" <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel
Organization Planix, Inc.
Message-ID <[email protected]>
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]>
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRuK6dmwVAucmRxuh9mfXG3eL/0fwUCZwA29QAKCRBmfXG3eL/0
f7A1AKD9iiy8V4trKKvpmUXErzxeBP9IZQCgpc+nmpODw5gpvN1rdee7ERgThGs=
=zVZX
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.