-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
rm : Removes parent directory #6620
Copy link
Copy link
Closed
Labels
Description
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.
Reactions are currently unavailable