Skip to content

feat: forward Bash 5.3's invalid regex error details#84

Merged
martin-schulze-vireso merged 2 commits into
masterfrom
fix/invalid-regex-errors-on-bash-5.3
Oct 11, 2025
Merged

feat: forward Bash 5.3's invalid regex error details#84
martin-schulze-vireso merged 2 commits into
masterfrom
fix/invalid-regex-errors-on-bash-5.3

Conversation

@martin-schulze-vireso

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

Copy link
Copy Markdown
Member

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
Comment thread src/assert_line.bash
| batslib_decorate "ERROR: ${caller}" \
| fail
return $?
if (( is_mode_regexp == 1 )) then

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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.

2 participants