tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: interactive shell detection in shrc



At Mon, 30 Sep 2024 20:39:47 +0000 (UTC), RVP <rvp%SDF.ORG@localhost> 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 <gwoods%acm.org@localhost>

Kelowna, BC     +1 250 762-7675           RoboHack <woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost>     Avoncote Farms <woods%avoncote.ca@localhost>

Attachment: pgp3A63V3Om_0.pgp
Description: OpenPGP Digital Signature



Home | Main Index | Thread Index | Old Index