2025年1月22日(水) 22:03 MacBeth :
> 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: compati
On Tue, Jan 21, 2025 at 11:25 PM Lawrence Velázquez wrote:
> On Tue, Jan 21, 2025, at 9:49 PM, MacBeth wrote:
> > "Bash-5.0 is the final version for which there will be an individual
> shopt
> > option for the previous version. Users should use BASH_COMPAT on bash-5.0
> > and later versions."
> >
On 1/21/25 9:49 PM, MacBeth wrote:
re: GNU bash, version 5.2.37(1)-release (aarch64-apple-darwin23.4.0)
---
1) `shopt compat50` does not exist. The manpage does specify that
'compat50' is a valid option for `shopt` under BUILTINS/shopt. Yet bash
provides an error when trying to read or change i
On 1/22/25 8:03 AM, MacBeth wrote:
$ unset BASH_COMPAT
$ declare -p BASH_COMPAT
bash: declare: BASH_COMPAT: not found
$ BASH_COMPAT=foobar
bash: BASH_COMPAT: foobar: compatibility value out of range
$ declare -p BASH_COMPAT
declare -- BASH_COMPAT="foobar"
$ BASH_COMPAT=4.4 /opt/homebrew/bin/bash