fix(release): workaround for gawk regex bug#21002
Open
david-allison wants to merge 1 commit into
Open
Conversation
gawk 5.4.0 did not work correctly with `increase-version.awk` echo "12.4alpha9" | gawk -f tools/lib/increase-version.awk expected: 12.4alpha10 actual: 12.4alpha913.4 5.4.0 https://lists.gnu.org/archive/html/info-gnu/2026-02/msg00011.html Bug report: https://lists.gnu.org/archive/html/bug-gawk/2026-05/msg00009 .html This fix obtains the prefix by stripping the numeric suffix from the string, then substrings to obtain the suffix. Changes: '123' previously returned 123124, now 124 Assisted-by: Claude Opus 4.7 - diagnostics
This was referenced May 8, 2026
Contributor
|
LGTM!! ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Assisted-by: Claude Opus 4.7 - diagnostics
Purpose / Description
gawk 5.4.0 did not work correctly with
increase-version.awkdue to new MinRX matchers5.4.0 announcement
-- https://lists.gnu.org/archive/html/info-gnu/2026-02/msg00011.html
Approach
This fix obtains the prefix by stripping the numeric suffix from the string, then substrings to obtain the suffix.
I did not use the workaround flag
GAWK_GNU_MATCHERS=1, but have reported the bug upstream so others will benefit from the fix.How Has This Been Tested?
Changes:
'123' previously returned 123124, now 124 ✅
Learning
5.4.0 release: https://lists.gnu.org/archive/html/info-gnu/2026-02/msg00011.html
My bug report: https://lists.gnu.org/archive/html/bug-gawk/2026-05/msg00009.html
Checklist