Re: interactive shell detection in shrc

"Greg A. Woods" <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel
Organization Planix, Inc.
Message-ID <[email protected]>
> SHELL is set by ksh and not by sh (sh handles NETBSD_SHELL), if I'm
> not mistaken?

login(1) sets $SHELL, and in the BSD world it has done so since 4.2 or
before.  In the AT&T Unix world it has done so since at least 
System III, aka UNIX 3.0.

IIRC in 7th Edition Research Unix since there was only one /bin/sh and
no possibility of any other so no need to clutter the environment
declaring its name.  Even system(3) hard-codes /bin/sh into the library,
and that continues on the exact same way until 10th Edition.

sh(1)'s NETBSD_SHELL is something entirely different and unrelated.

-- 
					Greg A. Woods <[email protected]>

Kelowna, BC     +1 250 762-7675           RoboHack <[email protected]>
Planix, Inc. <[email protected]>     Avoncote Farms <[email protected]>
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.