[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: |
Tue, 13 Feb 2024 10:15:33 -0500 |
On Tue, Feb 13, 2024 at 9:33 AM Chet Ramey <chet.ramey@case.edu> wrote:
> This sounds like another case of "I can't imagine it happening, so it must
> not be happening."
>
But we've not reached the point where this would be considered a bug,
because you know it was intentionally implemented this way?
Bash has behaved this way forever, and this isn't convincing enough to
> change that aspect of its behavior.
>
The behavior even differs between redirections from builtin commands vice
external commands. Without considering implementation details, it just
seems arbitrary.
Should
printf '%s\n' "whatever" > "$(( i++ ))-file.txt"
behave differently than
/usr/bin/printf '%s\n' "whatever" > "$(( i++ ))-file.txt"
?
- Re: why does </proc/self/environ not work in bash?, (continued)
- Re: why does </proc/self/environ not work in bash?, Greg Wooledge, 2024/02/11
- Re: why does </proc/self/environ not work in bash?, Chet Ramey, 2024/02/12
- Re: why does </proc/self/environ not work in bash?, Zachary Santer, 2024/02/12
- Re: why does </proc/self/environ not work in bash?, Chet Ramey, 2024/02/12
- Re: why does </proc/self/environ not work in bash?, Zachary Santer, 2024/02/12
- Re: why does </proc/self/environ not work in bash?, Chet Ramey, 2024/02/13
- Re: why does </proc/self/environ not work in bash?,
Zachary Santer <=
- Re: why does </proc/self/environ not work in bash?, Chet Ramey, 2024/02/13
- Re: why does </proc/self/environ not work in bash?, Zachary Santer, 2024/02/13
- Re: why does </proc/self/environ not work in bash?, Chet Ramey, 2024/02/13
- Re: why does </proc/self/environ not work in bash?, Zachary Santer, 2024/02/14
- Re: why does </proc/self/environ not work in bash?, Chet Ramey, 2024/02/14
- Re: why does </proc/self/environ not work in bash?, Zachary Santer, 2024/02/14
- Re: why does </proc/self/environ not work in bash?, Chet Ramey, 2024/02/14
- Re: why does </proc/self/environ not work in bash?, Grisha Levit, 2024/02/13