[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: why does </proc/self/environ not work in bash?
From: |
Chet Ramey |
Subject: |
Re: why does </proc/self/environ not work in bash? |
Date: |
Tue, 13 Feb 2024 09:34:56 -0500 |
User-agent: |
Mozilla Thunderbird |
On 2/12/24 4:22 PM, Lawrence Velázquez wrote:
On Mon, Feb 12, 2024, at 3:56 PM, Christoph Anton Mitterer wrote:
Well it says:
"3. Redirections shall be performed as described in Redirection"
Which is surrounded by stuff that still has to be done by the shell.
Done by *a* shell. AFAICT the standard does not say *which* shell
-- the original or a child forked in preparation of executing the
utility.
"When expanding the words in a command about to be executed that are used
with variable
assignments or redirections, it is unspecified whether the expansions are
carried out in the
current execution environment or in the environment of the command about to
be executed."
That's from the latest draft of the upcoming revision.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Re: why does </proc/self/environ not work in bash?, Lawrence Velázquez, 2024/02/11
Re: why does </proc/self/environ not work in bash?, Kerin Millar, 2024/02/11
Re: why does </proc/self/environ not work in bash?, Christoph Anton Mitterer, 2024/02/11
Re: why does </proc/self/environ not work in bash?, Christoph Anton Mitterer, 2024/02/11
Re: why does </proc/self/environ not work in bash?, Chet Ramey, 2024/02/12