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

rm : Removes parent directory #6620

Open
AnirbanHalder654322 opened this issue Aug 7, 2024 · 1 comment · May be fixed by #6623
Open

rm : Removes parent directory #6620

AnirbanHalder654322 opened this issue Aug 7, 2024 · 1 comment · May be fixed by #6623
Labels

Comments

@AnirbanHalder654322
Copy link
Contributor

Coreutils

mkdir d
rm -rf d/..

This removes all the files in parent directory of d.

GNU

mkdir d
rm -rf d/..

This fails and produces the error message below.
rm: refusing to remove '.' or '..' directory: skipping 'd/..

This is related to the rm/r-4.sh compatibility test.

@just-an-engineer
Copy link
Contributor

I'll take this one

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

Successfully merging a pull request may close this issue.

3 participants