Boo you BlueFish!I don't know either Ruby or Java at the moment, but I need to learn both. I'll be having to design a web application in jRuby on Rails so that I can utilize some open source Java code in the app. I decided I was going to start with Ruby, since I need that to get the basis of the site designed. I spent all morning researching the MVC framework, how to make things happen (controllers, partials, etc.), and started coding. Around lunchtime I had the generic site template up and working along with some AJAX to dynamically change sections of the page.
I switched from BlueFish (the GUI editor I sometimes use because it can open files in tabs) to my terminal and saw that BlueFish created automatic backups of the files I had edited. It does this by appending a ~ to the filename. I hate when it does that, it just clogs up my directory. So, I wanted to delete them. I wasn't exactly sure if I had to escape the ~, so I was going to anyway. It couldn't hurt. I wanted to run:
# rm *\~But as I went to hit the \ key, my pinky missed and hit ENTER, thus executing:
# rm *This whole morning's work, gone. Luckily, the only reason it took me all morning was because I was learning as I went. I was able to recreate everything in about 10 minutes now that I know what I'm doing. Still, that could have sucked really bad.