[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash not escaping escape sequences in directory names
From: |
L A Walsh |
Subject: |
Re: Bash not escaping escape sequences in directory names |
Date: |
Wed, 26 Jan 2022 00:26:05 -0800 |
User-agent: |
Thunderbird |
On 2022/01/22 12:48, Andreas Kusalananda Kähäri wrote:
The shell even keeps the PS1 variable's value from its inherited
environment
without sanitizing it.
----
This is a requirement of the unix/posix model that has 'fork'
create a new process that is a new unfiltered, unsanitized copy of the
original.
All memory, not just environment vars are exact copies of the
parent.
If a child process did not contain an exact copy of its parent after
a fork, it would be a serious problem.
What you are insinuating as a problem "the shell even keeps the PS1
variable's value from its inherited environment without sanitizing it",
is a requirement not just for PS1, but all memory.
If you don't like that feature, you move to an entirely different
OS -- like 'NT' (at base of windows), where new processes are created
by a special OS-function that has no automatic importation of anything
from the previous process. Everything is created 'anew' with nothing
in the new process being automatically inherited from the previous process.
If a shell or any process didn't inherit it's parent's memory, it would be
a serious error.
- Re: Bash not escaping escape sequences in directory names, (continued)
- Re: Bash not escaping escape sequences in directory names, Robert Elz, 2022/01/24
- Re: Bash not escaping escape sequences in directory names, Andreas Kusalananda Kähäri, 2022/01/24
- Re: Bash not escaping escape sequences in directory names, konsolebox, 2022/01/24
- Re: Bash not escaping escape sequences in directory names, Robert Elz, 2022/01/24
- Re: Bash not escaping escape sequences in directory names, konsolebox, 2022/01/24
- Re: Bash not escaping escape sequences in directory names, Robert Elz, 2022/01/24
- Re: Bash not escaping escape sequences in directory names, konsolebox, 2022/01/24
- Re: Bash not escaping escape sequences in directory names, Chet Ramey, 2022/01/24
- Re: Bash not escaping escape sequences in directory names,
L A Walsh <=
- Re: Bash not escaping escape sequences in directory names, Andreas Kusalananda Kähäri, 2022/01/26
- Re: Bash not escaping escape sequences in directory names, Lawrence Velázquez, 2022/01/22
Re: Bash not escaping escape sequences in directory names, Andreas Schwab, 2022/01/22
Re: Bash not escaping escape sequences in directory names, Chet Ramey, 2022/01/21
Re: Bash not escaping escape sequences in directory names, Josh Harcombe, 2022/01/23