9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Stanley Lieber <sl@stanleylieber.com>
To: 9front@9front.org
Subject: Re: [9front] Shared env in child scripts
Date: Mon, 31 May 2021 18:10:58 -0400
Message-ID: <F5302CBC-0C72-46B8-BD70-4D0F299B1B82@stanleylieber.com> (raw)
In-Reply-To: <CAHtSCH+TsKE80OU1Wz+WC738n0tAPo-z-L0iPDLUtSmqayvVeg@mail.gmail.com>

On May 31, 2021 2:23:46 PM EDT, binary cat <dogedoge61@gmail.com> wrote:
>> I understand that it allows a child script to change env
>> values for its parent, but is that desirable?
>
>It doesn't even do that well.
>Environment variables are cached in rc, and this cache is never updated.
>
>I think a good change would be that, by default,
>rc performs `rfork(RFENVG);` at startup, then continues as it does now.
>Then, there would be a flag that skips this rfork, and also disables caching
>of environment variables.
>

why

      reply	other threads:[~2021-06-01  2:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-31  2:30 kjn
2021-05-31 12:32 ` sirjofri
2021-05-31 14:58 ` kvik
2021-05-31 18:23 ` binary cat
2021-05-31 22:10   ` Stanley Lieber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F5302CBC-0C72-46B8-BD70-4D0F299B1B82@stanleylieber.com \
    --to=sl@stanleylieber.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

9front - general discussion about 9front

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/9front

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9front 9front/ http://inbox.vuxu.org/9front \
		9front@9front.org
	public-inbox-index 9front

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9front


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git