Skip to content

Conversation

@LoukasPap
Copy link

Fix issue 253

  • Initialize the context of the hold space to \n (newline character)
  • Previously, it started as an empty string which resulted to wrong outputs

This solution not only fixes the problem for the swap pattern x but also for g and G .

@LoukasPap
Copy link
Author

By mistake, I contained commits from other PRs in this PR. I'll try to fix it.

@github-actions
Copy link

GNU sed testsuite comparison:

Test results comparison:
  Current:   TOTAL: 64 / PASSED: 8 / FAILED: 56 / SKIPPED: 0
  Reference: TOTAL: 64 / PASSED: 8 / FAILED: 56 / SKIPPED: 0

@LoukasPap
Copy link
Author

Creating a new PR with only the commits needed.

@LoukasPap LoukasPap closed this Jan 14, 2026
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.

handles multiple exchange commands differently from GNU (pattern space truncation)

1 participant