Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cp fixes #90

Merged
merged 3 commits into from
May 10, 2024
Merged

Cp fixes #90

merged 3 commits into from
May 10, 2024

Conversation

JRF63
Copy link
Contributor

@JRF63 JRF63 commented May 5, 2024

Fleshed out the cp implementation. This is compatible with coreutils cp down to the error diagnostics and prompts.

@JRF63 JRF63 marked this pull request as draft May 5, 2024 12:49
// loop through sources, moving each to target
for source in sources {
// This doesn't seem to be compliant with POSIX
let ends_with_slash_dot = |p: &Path| -> bool {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't locate any rules regarding /. in the specification, but I included this for the sake of compatibility.

@JRF63 JRF63 marked this pull request as ready for review May 10, 2024 18:42
@jgarzik jgarzik merged commit 302c315 into rustcoreutils:main May 10, 2024
2 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants