waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

Wave bash shopt command inconsistencies

Open programmist opened this issue 1 year ago • 1 comments

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:

  1. Open a Wave bash terminal
  2. Type shopt -s autocd
  3. 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.

programmist avatar Jun 26 '24 16:06 programmist

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

kamushadenes avatar Jul 26 '24 01:07 kamushadenes