-
Notifications
You must be signed in to change notification settings - Fork 12
Add support for address range commands (GNU extension) #260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
GNU sed testsuite comparison: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #260 +/- ##
==========================================
- Coverage 82.03% 81.97% -0.07%
==========================================
Files 13 13
Lines 5423 5454 +31
Branches 291 292 +1
==========================================
+ Hits 4449 4471 +22
- Misses 972 981 +9
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
GNU sed testsuite comparison: |
|
Thank you! This is a GNU extension, so the feature should not be available under |
|
Got it! I'll fix these and push again. |
|
Found out that the problem happens with the |
|
I'd suggest one commit for all commands. Try to unify the check for POSIX. |
|
GNU sed testsuite comparison: |
2 similar comments
|
GNU sed testsuite comparison: |
|
GNU sed testsuite comparison: |
81e0901 to
698f2b7
Compare
|
Squashed all my commits having removed the merge commit which was not mine. The POSIX check now happens in one place. I will update the README.md too. |
|
GNU sed testsuite comparison: |
d980254 to
a73f56d
Compare
|
GNU sed testsuite comparison: |
|
I see you're progressing! Try running the various CI tasks locally to avoid CI failures. Please also close the PRs that you've folded into this one. |
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
|
|
These two tests are failing because the supported addresses are now 2 and not 1 (like the tests assert):
Would it be "correct" to change the tests to check for 2 addresses; What I mean is, do these tests represent the standard I hope I am clear :) |
|
I would expect that rather than storing / returning a number you would store
I suggest that you also store and process |
dspinellis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider the initial comments I made on the code and fix the CI errors. Will then follow-up with a more complete review.
Thank you for helping me out! Indeed, I recently noticed I could run the CI tasks locally. It will be much faster than pushing and then checking for errors.
Yes, I will finish this issue before moving to another. For a reason, I hadn't noticed your new comments and I was searching for another issue while I was waiting. |
|
GNU sed testsuite comparison: |
|
GNU sed testsuite comparison: |
|
GNU sed testsuite comparison: |
…flag usage with GNU-only extensions - Update check for invalid address range in POSIX mode by adding `n_add_posix` field in CommandSpec struct which specifies what is the number of addresses allowed for each command in POSIX mode - Add integration and unit tests - Update README.md
Fixes issue 234
a,iand=commandsUPDATE
The PR now solves the problem where invalid POSIX commands with address range were being allowed when they shouldn't. These commands are:
a,i,=,l,q,r(maybe there are some more I missed).