tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: interactive shell detection in shrc
> 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 <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>
Home |
Main Index |
Thread Index |
Old Index