At Mon, 30 Sep 2024 21:59:49 +0200, <tlaro...@kergis.com> 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 <gwo...@acm.org> Kelowna, BC +1 250 762-7675 RoboHack <wo...@robohack.ca> Planix, Inc. <wo...@planix.com> Avoncote Farms <wo...@avoncote.ca>
pgp4xXHK48WKX.pgp
Description: OpenPGP Digital Signature