Skip to content

Lower min support bash 3.0 #470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Conversation

Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Aug 2, 2025

πŸ“š Description

Right now the min supported version is bash 3.2

Idea from @akinomyoga, thanks!

πŸ”– Changes

  • Allow bash 3.0 and above

βœ… To-do list

  • I updated the CHANGELOG.md to reflect the new feature or fix
  • I updated the documentation to reflect the changes

@Chemaclass Chemaclass self-assigned this Aug 2, 2025
@Chemaclass Chemaclass added the enhancement New feature or request label Aug 2, 2025
Copy link

@akinomyoga akinomyoga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested this with a real Bash 3.0 binary?

@@ -239,7 +239,7 @@ function helpers::find_total_tests() {
for fn_name in "${functions_to_run[@]}"; do
local provider_data=()
Copy link

@akinomyoga akinomyoga Aug 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Bash 3.0, this doesn't work. This is equivalent to local provider_data='()' and creates a scalar variable containing the string '()' in Bash 3.0.

I just noticed this by looking at the diff, but I haven't checked the entire codebase. There could still be other compatibility issues.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback. I didn't tested with real bash 3.0 binary as I had to leave after I created the PR and wanted to know how far away from the final result this would be. I will continue with it and test it with bash 3.0 binary this weekend. Also, I should find a way to setup this bash 3.0 in the CI to run all tests using that version

@Chemaclass Chemaclass marked this pull request as draft August 2, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants