Skip to content
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

csplit: empty file not created with --suppress-matched and multiple patterns #7087

Open
Felle33 opened this issue Jan 7, 2025 · 2 comments

Comments

@Felle33
Copy link
Contributor

Felle33 commented Jan 7, 2025

While I was experimenting the --suppress-matched option, I have found this particular case:

printf "1\n2\n3\n4\na\n" | ./target/debug/csplit --suppress-matched - 2 /a/

The uutils csplit outputs in standard output:

2
4

The GNU csplit outputs in standard output:

2
4
0

It creates three files and the last one (xx02) is empty.
I have created a new issue because I think it is different from the #7052. What do you think?

@cakebaker
Copy link
Contributor

Yes, it looks like a different issue.

@Felle33
Copy link
Contributor Author

Felle33 commented Jan 9, 2025

Note: this issue is what makes the csplit-suppress-matched.pl test 7318 fail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants