Wave bash shopt command inconsistencies
Describe the bug
When I run the command shopt -s autocd in Wave bash I get the error: bash: shopt: autocd: invalid shell option name. When I type the same command in bash in iTerm2 it works correctly.
To Reproduce Steps to reproduce the behavior:
- Open a Wave bash terminal
- Type
shopt -s autocd - See error:
bash: shopt: autocd: invalid shell option name
Expected behavior
When the command is typed there should be no error and it should enable the expected shell behavior (changing to a directory without the cd command).
Desktop (please complete the following information):
- OS: MacOS, x64 Intel
- Version: 12.6.1
Additional context I'm running GNU bash, version 5.2.26(1)-release (x86_64-apple-darwin21.6.0). Both iTerm2 and Wave report this same version when queried and yet they seem to reference different versions of shopt.
This issue is pretty minor and doesn't really affect my workflow, but I'm reporting it anyway in case it points to a larger issue.
It seems to always start using the system's default shell, which in case of MacOS, is pretty old (Bash 3.2).
Related https://github.com/wavetermdev/waveterm/issues/729 https://github.com/wavetermdev/waveterm/issues/91