coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

``rm`` : Removes parent directory

Open AnirbanHalder654322 opened this issue 1 year ago • 1 comments

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.

AnirbanHalder654322 avatar Aug 07 '24 09:08 AnirbanHalder654322

I'll take this one

just-an-engineer avatar Aug 07 '24 14:08 just-an-engineer