From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=DATE_IN_PAST_12_24 autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 26228 invoked from network); 1 Jun 2021 09:27:14 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 1 Jun 2021 09:27:14 -0000 Received: from oat.nine.sirjofri.de ([5.45.105.127]) by 1ess; Mon May 31 09:10:08 -0400 2021 Received: from sirjofri.de ([94.222.38.111]) by oat; Mon May 31 14:32:13 +0200 2021 Date: Mon, 31 May 2021 12:32:11 +0000 (UTC) From: sirjofri To: 9front@9front.org Message-ID: <8c01e6a2-3742-445e-b5e9-a6509f88acde@sirjofri.de> In-Reply-To: <14875E53238A4C869B47B23B95272195@gmail.com> References: <14875E53238A4C869B47B23B95272195@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Correlation-ID: <8c01e6a2-3742-445e-b5e9-a6509f88acde@sirjofri.de> List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: YAML callback lifecycle configuration hypervisor Subject: Re: [9front] Shared env in child scripts Reply-To: 9front@9front.org Precedence: bulk Hello, 31.05.2021 04:30:56 kjn@9project.net: > I find the lack of default rfork e in rc scripts irritating. > Inevitably, I end up forgetting to add an 'rfork e' to the top of my > scripts.=C2=A0 Is there a good reason why rc doesn't do an rfork(RFENVG); > on startup?=C2=A0 I understand that it allows a child script to change en= v > values for its parent, but is that desirable? > > Even if that behavior is wanted, I would expect it to be the exception > not the rule. > > Does anyone know more about this design decision? I don't exactly know the details about the decision, but I think it's=20 easier to tell rc to please fork than to tell it _not_ to do have done it= =20 before starting the script. I distinguish between smaller scripts (no env, only a chain of commands,=20 sometimes $1...) and more complex scripts (basically all start with rfork= =20 en). Hope that helps. sirjofri