9front - general discussion about 9front
 help / color / mirror / Atom feed
From: kjn@9project.net
To: 9front@9front.org
Subject: [9front] Shared env in child scripts
Date: Sun, 30 May 2021 21:30:56 -0500	[thread overview]
Message-ID: <14875E53238A4C869B47B23B95272195@gmail.com> (raw)

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.  Is there a good reason why rc doesn't do an rfork(RFENVG);
on startup?  I understand that it allows a child script to change env
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?

-- KJN


             reply	other threads:[~2021-05-31  9:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-31  2:30 kjn [this message]
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

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=14875E53238A4C869B47B23B95272195@gmail.com \
    --to=kjn@9project.net \
    --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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).