-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
mv: 'mv source hardlink' should fail #4831
Conversation
GNU testsuite comparison:
|
Oh, it is unexpected :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The functionality itself looks fine. However, there is a unresolved import 'uucore::fs'
error when running cargo test --features "mv" --no-default-features
. It can be fixed by adding features=["fs"]
to mv's Cargo.toml
.
2cdfff5
to
9092bb5
Compare
GNU testsuite comparison:
|
1 similar comment
GNU testsuite comparison:
|
GNU testsuite comparison:
|
touch a ln a b ./target/debug/coreutils mv --backup=simple a b GNU: tests/mv/hard-4.sh
GNU testsuite comparison:
|
I don't know if you have seen it, but the new tests in |
|
||
at.hard_link(file_a, file_b); | ||
|
||
at.touch(file_a); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at.touch(file_a); |
I don't know why this second "touch" is there. The test also passes without it.
According to: https://stackoverflow.com/questions/44913985/creating-hardlinks-and-symlinks-in-android hardlink aren't expected to work on android + fat
GNU testsuite comparison:
|
fixes: tests/mv/force.sh