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

mv source existing-symlink should generate an error #4613

Closed
sylvestre opened this issue Mar 24, 2023 · 1 comment
Closed

mv source existing-symlink should generate an error #4613

sylvestre opened this issue Mar 24, 2023 · 1 comment
Labels

Comments

@sylvestre
Copy link
Contributor

# Comment to have GNU's behavior
export C=./target/debug/coreutils
rm -f mvforce2

echo force-contents > mvforce
ln mvforce mvforce2
$C mv mvforce mvforce2

should fail with

mv: 'mvforce' and 'mvforce2' are the same file

but we don't generate any error

tested with:
bash util/run-gnu-test.sh tests/mv/force.sh

@cakebaker
Copy link
Contributor

Closing this ticket as it has been fixed in #4831

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants