<div dir="ltr"><div>Hello maintainers!<br><br>I think I have found a really nasty bug in the coreutils, more specifically in the 'rm' command.<br><br>I'm currently running Linux Mint 17, with 'coreutils' version: 8.21-1ubuntu5, and I have this alias in my .bashrc (both for me and root):<br>alias rm = 'rm -i'</div><div><br></div><div>Here's what happened:<br><br>1) I was in the folder: ~/.ccache/</div><div>2) I wanted to delete the content of it (some of the files were owned by the root), so I used:</div><div>    'sudo rm -rf *'<br>3) The content of .ccache was small, so it should have delete it immediately. Instead, it was going on, so I pressed CTRL+C to stop it.</div><div>4) Then I have found out, it has deleted most of my content in my home ( ~/ ) folder.<br><br>I'm not replicating this again, because I don't want to loose any more data. I hope you understand.<br><br>However, I think this is not for the first time this has happened to me with this 'rm' version.<br><br>I'm much pretty sure, in previous versions the 'rm' was not acting like this. The POSIX says the rm should never delete the . and .. files. (Usually prints some warnings if -f is not used.)<br><br>And the -r option should be only descending into children directories. I think it should never ascend, which happened in this case.<br><br>Could you please confirm my suspicions?<br><br>Thank you!</div><div><br></div>Dee'Kej<div><div dir="ltr"><div>---------------------------------------------</div><div> Phone: <a href="tel:%2B41%20%280%2979%20109%2023%2074" value="+41791092374" target="_blank">+41 (0)79 109 23 74</a> | <a href="tel:%2B420%20777%20655%20769" value="+420777655769" target="_blank">+420 777 655 769</a><br></div> E-mail:  <a href="mailto:deekej.dj@gmail.com" target="_blank">deekej.dj@gmail.com</a><br><div> Skype:  <a href="http://deekej.dj/" target="_blank">deekej.dj</a> <br></div><div> Jabber:  <a href="mailto:deekej@jabber.cz" target="_blank">deekej@jabber.cz</a></div></div></div>
</div>