Skip to content

sed: report where an unmatched { was opened - #580

Merged
sylvestre merged 1 commit into
uutils:mainfrom
sylvestre:unmatched-brace-position
Oct 10, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
sylvestre:unmatched-brace-position

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor

unmatched '{' was reported without any location. Like GNU sed, point at the innermost { left open, and report it before undefined labels.

script GNU sed 4.9 before after
-e p -e '{' -e p -e expression #2, char 0 sed: unmatched '{' <script argument 2>:1:1
-e 'p;1{' -e '2{' -e 'b nowhere' -e expression #2, char 0 undefined label 'nowhere' <script argument 2>:1:1
-e '1{;2{' -e p -e expression #1, char 0 sed: unmatched '{' <script argument 1>:1:4

Copilot AI lite review requested due to automatic review settings September 27, 2026 17:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.88%. Comparing base (72ed709) to head (8efa217).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/sed/compiler.rs 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #580      +/-   ##
==========================================
+ Coverage   83.87%   83.88%   +0.01%     
==========================================
  Files          14       14              
  Lines        6977     6976       -1     
  Branches      407      407              
==========================================
  Hits         5852     5852              
+ Misses       1121     1120       -1     
  Partials        4        4              
Flag Coverage Δ
macos_latest 85.04% <50.00%> (+0.01%) ⬆️
ubuntu_latest 85.24% <50.00%> (+0.01%) ⬆️
windows_latest 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sylvestre
sylvestre force-pushed the unmatched-brace-position branch from ddd499b to 8efa217 Compare September 27, 2026 18:17
Copilot AI review requested due to automatic review settings September 27, 2026 18:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@sylvestre
sylvestre merged commit 10fa717 into uutils:main Oct 10, 2026
30 of 31 checks passed
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