At Mon, 30 Sep 2024 21:59:49 +0200, <tlaronde%kergis.com@localhost> wrote: Subject: Re: interactive shell detection in shrc > > On Mon, Sep 30, 2024 at 12:14:44PM -0700, Greg A. Woods wrote: > > > 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. > > > > What I mean is that if I'm under ksh, and then I switch to sh even > explicitely setting interactive : Then you just broke the rules! :-) Switching to shells interactively (and without manually changing $SHELL), is entirely out of scope for this issue. -- 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:
pgpZGMeKj7e9Q.pgp
Description: OpenPGP Digital Signature