help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does </proc/self/environ not work in bash?


From: Zachary Santer
Subject: Re: why does </proc/self/environ not work in bash?
Date: Wed, 14 Feb 2024 10:30:33 -0500

On Wed, Feb 14, 2024 at 9:13 AM Chet Ramey <chet.ramey@case.edu> wrote:

> It means that the function that expands redirection words and manipulates
> files and file descriptors, which still performs more or less the same
> function today, was called post-fork from the very beginning. It doesn't
> have anything to do with parsing.
>

Oh, so all this stuff is just handled in one place. Breaking the
functionality to expand (right) the redirection words into its own function
to be called before the fork would be "gnarly" because there isn't a
very straightforward way to pass those expanded words along to the
remaining bits of this function, still being called after the fork?

Just for my own edification, where would I be looking if I wanted to patch
that? Probably just to see how much of a pain it would be. Haven't touched
C in forever.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]