Re: interactive shell detection in shrc
"Greg A. Woods" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.userlevel |
|---|---|
| Organization | Planix, Inc. |
| Message-ID | <[email protected]> |
At Mon, 30 Sep 2024 21:59:49 +0200, <[email protected]> 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 <[email protected]> Kelowna, BC +1 250 762-7675 RoboHack <[email protected]> Planix, Inc. <[email protected]> Avoncote Farms <[email protected]>
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRuK6dmwVAucmRxuh9mfXG3eL/0fwUCZv9BBQAKCRBmfXG3eL/0 f9sNAKDSjD/kmmKL89JhAwDoWVO4lZPTzACgpf1NfWRmn0pV/2x5bic9HdHANrU= =0XVl -----END PGP SIGNATURE-----