bug-bash
[Top][All Lists]
Advanced

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

Re: bash compat* issues?


From: Koichi Murase
Subject: Re: bash compat* issues?
Date: Wed, 22 Jan 2025 22:34:05 +0900

2025年1月22日(水) 22:03 MacBeth <macbeth.112358@gmail.com>:
> Or perhaps that second error is produced by the parent shell before

This. The error message is printed even for "/bin/echo":

$ BASH_COMPAT=foo
bash: BASH_COMPAT: foo: compatibility value out of range
$ BASH_COMPAT=4.4 /bin/echo hello
bash: BASH_COMPAT: foo: compatibility value out of range
hello

The temporary environment is *temporary*, i.e., 1) the shell changes
the value of BASH_COMPAT to "4.4", 2) spawns the command, and then 3)
reverts its value to the original one "foo". I believe the error
message is printed on step 3.

--
Koichi



reply via email to

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