Red Hat Bugzilla – Bug 887711
Cannot delete directory when special characters are used.
Last modified: 2013-02-20 01:32:36 EST
Description of problem:
I created a directory "-4oEo5VkALI" and cannot be deleted.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Create a directory using os.mkdir or any other mechanism
2. try to delete it via rm -rf "\-4oEo5VkALI" and will not be able to remove it.
Cannot delete directory
*** Bug 887712 has been marked as a duplicate of this bug. ***
*** Bug 887714 has been marked as a duplicate of this bug. ***
*** Bug 887713 has been marked as a duplicate of this bug. ***
I don't think this is a bug. Directories and files with - at the start of the name will cause problems in any POSIX file system. Try using a full or partial path:
or the -- option:
rm -r -- -4oEo5VkALI
comment #4 is precise, and please re-open if thats not the issue.