2025年1月22日(水) 22:03 MacBeth <macbeth.112...@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