> 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 <gwo...@acm.org>

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

Reply via email to