Skip to content

rm : Removes parent directory  #6620

@AnirbanHalder654322

Description

@AnirbanHalder654322

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions