-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
csplit: incorrect split with --suppress-matched and positive offset #7052
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
Labels
Comments
Hello, I would like to work on this issue. In particular, I was trying to run the test |
@Felle33 sure, go ahead :) You can find |
Felle33
added a commit
to Felle33/coreutils
that referenced
this issue
Jan 7, 2025
…atched according to issue uutils#7052 and modified also test_up_to_match_negative_offset_option_suppress_matched
cakebaker
pushed a commit
to Felle33/coreutils
that referenced
this issue
Jan 8, 2025
…atched according to issue uutils#7052 and modified also test_up_to_match_negative_offset_option_suppress_matched
cakebaker
pushed a commit
that referenced
this issue
Jan 9, 2025
…egative offset is present (#7088) * tests/csplit: modified test test_up_to_match_offset_option_suppress_matched according to issue #7052 and modified also test_up_to_match_negative_offset_option_suppress_matched * csplit: managed the positive and negative offset when the --suppressed-matched flag is active * tests/csplit: modified test test_up_to_match_offset_option_suppress_matched according to issue #7052 and modified also test_up_to_match_negative_offset_option_suppress_matched * csplit: managed the positive and negative offset when the --suppressed-matched flag is active * csplit: swapped if and else blocks for better readability
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment: Ubuntu 20.04, uutils
main
branch (git commit 6a8b766), GNU coreutils v9.5.227-28b1.Steps to reproduce:
What happens now: with uutils
csplit
the command outputs:and the contents of the two files are
What I expected to happen: with GNU
csplit
, the command outputsand the contents of the two files are
Notes: this is causing a test failure in GNU test file
tests/csplit/csplit-suppress-matched.pl
.Also, the current erroneous behavior is enforced by a unit test in
tests/by-util/test_csplit.rs
namedtest_up_to_match_offset_option_suppress_matched
. That test case will need to be updated as well.The text was updated successfully, but these errors were encountered: