Skip to content

Conversation

andrewliebenow
Copy link
Contributor

Allow an empty delimiter list, so the program can do something useful in this case, instead of just exiting. Also, some other implementations of paste permit this use case, and users of paste rely on this functionality. [1] Also, read from stdin if "-" is passed.

[1] https://stackoverflow.com/questions/1251999/how-can-i-replace-each-newline-n-with-a-space-using-sed/7697604#7697604

Allow an empty delimiter list, so the program can do something useful
in this case, instead of just exiting. Also, some other
implementations of `paste` permit this use case, and users of paste
rely on this functionality. [1] Also, read from stdin if "-" is
passed.

[1] https://stackoverflow.com/questions/1251999/how-can-i-replace-each-newline-n-with-a-space-using-sed/7697604#7697604
@jgarzik jgarzik merged commit 1ef97a5 into rustcoreutils:main Sep 19, 2024
2 checks passed
@jgarzik
Copy link
Contributor

jgarzik commented Sep 19, 2024

As with the musl comment: changes such as grep spelling should be in a separate commit from the paste changes, since the two are entirely unrelated.

@andrewliebenow
Copy link
Contributor Author

As with the musl comment: changes such as grep spelling should be in a separate commit from the paste changes, since the two are entirely unrelated.

I'll try to make sure to do that in the future. Should small fixes like that go in separate PRs, too, or are separate commits sufficient?

@jgarzik
Copy link
Contributor

jgarzik commented Sep 19, 2024

I'll try to make sure to do that in the future. Should small fixes like that go in separate PRs, too, or are separate commits sufficient?

Separate commits at a minimum. If the change is large and logically separate, a separate PR is ideal.

If it's just small incidental cleanups, the same PR is fine.

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