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: allow offset without sign in pattern #7006

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

cakebaker
Copy link
Contributor

@cakebaker cakebaker commented Dec 27, 2024

So far, an offset without sign like in '/^$/1' causes an "invalid pattern" error whereas GNU csplit allows such a pattern (see https://www.gnu.org/software/coreutils/manual/html_node/csplit-invocation.html). This PR fixes the issue.

Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@sylvestre sylvestre merged commit 6f67826 into uutils:main Dec 27, 2024
61 of 62 checks passed
@cakebaker cakebaker deleted the csplit_fix_invalid_pattern branch December 28, 2024 05:57
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