Skip to main content
4 events
when toggle format what by license comment
Nov 24, 2016 at 21:27 comment added Tavian Barnes @AlexejMagura Removing the current directory works fine in general: mkdir foo && cd foo && rmdir $(pwd). It's removing . (or ..) that doesn't work.
Nov 18, 2016 at 15:42 comment added mbroshi That's a good theory, but the man page for find says: "If the removal failed, an error message is issued." Why is no error printed?
Nov 18, 2016 at 15:39 comment added Alexej Magura As it should: POSIX is king, plus removing the current directory could cause some very big problems depending on the parent application and what not. Like what if the current directory were /var/log and you ran that as root, thinking that it'd remove all the subdirs and it removed the current directory as well?
Nov 18, 2016 at 15:23 history answered Thomas CC BY-SA 3.0