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

cut: fix overriding of -d= #6984

Merged

Conversation

cakebaker
Copy link
Contributor

While reading the code of cut I noticed that the special case -d= can't be overridden. This PR fixes the issue.

Before the change:

$ printf "a:=b" | cargo run -q cut -f2 -d= -d:
b
$ printf "a:=b" | cargo run -q cut -f2 --delimiter== -d:
=b
$ printf "a:=b" | cut -f2 -d= -d:
=b

After the change:

$ printf "a:=b" | cargo run -q cut -f2 -d= -d:
=b

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 609eee6 into uutils:main Dec 20, 2024
62 checks passed
@cakebaker cakebaker deleted the cut_fix_overriding_of_equal_delimiter branch December 21, 2024 05:47
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