-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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=() |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
π Description
Right now the min supported version is bash 3.2
π Changes
β To-do list
CHANGELOG.md
to reflect the new feature or fix