Let's try this: What happens if you give the full path when doing the rm command with the escape character (in your testing user "sandra" of course!)? $ rm -rf /home/sandra/test/\~ or $ rm -rf $HOME/test/\~ Does this work as expected?
If that works correctly, I think the main problem here is that the TAB completion does not handle this correctly and is a valid bug. ** Changed in: dash (Ubuntu) Status: New => Incomplete -- "rm -rf ~" deletes home directory. https://bugs.launchpad.net/bugs/254762 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs