Repository navigation
fix(awk): newline continuation after control headers, regex operands - #2554
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bashkit | e783036 | Commit Preview URL Branch Preview URL |
Oct 07 2026, 09:01 AM |
chaliy
force-pushed
the
claude/fidelity-awk-newlines
branch
from
October 7, 2026 09:00
bbad079 to
e783036
Compare
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.
Requested by Михайло · project thread
What changed
Three awk fixes found by replaying recorded agent calls (gap telemetry, #2552):
)of anif/for/whileheader, afterelse/do,&&,||or,continues the statement, as POSIX awk's grammar allows.do body; while (...)accepts the;.&&,||or?:(/=/ && !/^#/ { ... })./re/inside an expression means$0 ~ /re/. It evaluated to the pattern text, which is always true.Why
awk: unexpected character: ;was the most frequent awk failure in the replay corpus (22 distinct agent scripts): any multi-line awk program with afor (...)orif (...)body on the next line failed. The bare-regex bug was silent:if (/^\[/)matched every line.Before
After
Matches mawk on all new tests.
Risk
Low. The newline change only affects newlines that POSIX treats as continuations; regex arguments to
sub/gsub/match/gensub/splitand~operands still get the pattern text. Full lib and integration suites pass.Checklist
cargo fmt,cargo clippy -D warningshttps://claude.ai/code/session_019aFikmptPc91Fj4N2iDXQA
Generated by Claude Code