Skip to content

unexpand: match GNU overflow diagnostics - #748

Merged
ewhauser merged 1 commit into
mainfrom
ewhauser/unexpand-gnu-overflow
Mar 27, 2026
Merged

ewhauser merged 1 commit into
mainfrom
ewhauser/unexpand-gnu-overflow

Conversation

@ewhauser

@ewhauser ewhauser commented Mar 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • split tab-stop overflow parsing so expand and unexpand can report GNU-compatible diagnostics independently
  • keep expand reporting the overflowing operand while changing unexpand to use the GNU tab stop value is too large wording
  • add regression coverage for oversized tab-stop arguments in both builtin test suites

Testing

  • go test ./internal/builtins -run 'Test(Expand|Unexpand)'
  • make gnu-test GNU_UTILS=unexpand GNU_KEEP_WORKDIR=1
  • make lint

@ewhauser
ewhauser merged commit 3b2cfb3 into main Mar 27, 2026
15 checks passed
@ewhauser
ewhauser deleted the ewhauser/unexpand-gnu-overflow branch March 27, 2026 02:32
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.

1 participant