Skip to content

cp: copy dir if source path ends with dot #7874

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

Merged
merged 1 commit into from
May 4, 2025

Conversation

cakebaker
Copy link
Contributor

This PR makes the following work:

$ mkdir x
$ touch x/foo
$ cp -r x/. y # directory y is created with file foo

Fixes #7871

Copy link

github-actions bot commented May 2, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/stdbuf (passes in this run but fails in the 'main' branch)

@sylvestre sylvestre merged commit cd3c921 into uutils:main May 4, 2025
69 checks passed
@cakebaker cakebaker deleted the cp_fix_7871 branch May 4, 2025 08:14
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.

cp: doesn't copy directory when first path ends in dot
2 participants