Skip to content

Conversation

@martin-schulze-vireso
Copy link
Member

@martin-schulze-vireso martin-schulze-vireso commented Oct 11, 2025

Also fix failing tests due to additional output from Bash. This held up development in bats-core due to failing tests in via the Dockerfile, which is based on bash:latest.

@martin-schulze-vireso martin-schulze-vireso changed the title Fix/invalid regex errors on bash 5.3 feat: forward Bash 5.3's invalid regex error details Oct 11, 2025
@martin-schulze-vireso martin-schulze-vireso merged commit 2888442 into master Oct 11, 2025
2 checks passed
@martin-schulze-vireso martin-schulze-vireso deleted the fix/invalid-regex-errors-on-bash-5.3 branch October 11, 2025 19:31
| batslib_decorate "ERROR: ${caller}" \
| fail
return $?
if (( is_mode_regexp == 1 )) then
Copy link

Choose a reason for hiding this comment

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

Don't we need a ; at the end?

Suggested change
if (( is_mode_regexp == 1 )) then
if (( is_mode_regexp == 1 )); then

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, it seems to not be required anymore with bash 5.2 onwards, so it got through the tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

I fixed that in #85.

Copy link

Choose a reason for hiding this comment

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

Thank you very much 🍺 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants