Oops.. doh!
1. tma-pbook12:~/ToccerPalm tsm$ !scp 2. scp prc/Toccer.prc xxx.tienshiao.org:/home/tsm/public_html/ 3. Toccer.prc 100% 63KB 62.9KB/s 00:00 4. tma-pbook12:~/ToccerPalm tsm$ scp prc/Toccer.prc xxx.tienshiao.org:/home/tsm/public_html/!v 5. scp prc/Toccer.prc xxx.tienshiao.org:/home/tsm/public_html/vim ChatDraw.c 6. ChatDraw.c: Not a directory 7. tma-pbook12:~/ToccerPalm tsm$ !v 8. vim ChatDraw.c
Let me explain to you what that means.
Line 1. The exclamation (!) means run the last command line that has a prefix of “scp”.
Line 2. Shows that command line. It copies the prc file to one of my sites.
Line 4. I intended to type just !v, but I must have previously/accidentally pressed the up arrow which populates the commandline with the previous command.
Line 5. The resulting command. Which means copy “prc/Toccer.prc” and “xxx.tienshiao.org:/home/tsm/public_html/vim” to “ChatDraw.c”. “vim ChatDraw.c” was what I had intended to run.
Line 7. Let me try again.
Line 8. Ahhhhhhhhh! I realize I just overwrote my last week’s worth of work with prc/Toccer.prc.
I’m going to need to set up rotating backups on my laptop now too or something. Shit.
I guess on the plus side, I get to rewrite some code that could have used some rewriting. I hadn’t committed my changes yet because I was in the middle of something. Of course I was one little bug fix away from doing that tonight. Argh.
Update at 1:25am - I stayed up a little later and banged out a new implementation of the stuff I lost since my last commit. It is a little different, and compiled it’s a few hundred bytes smaller. And it does more. Go figure. I’m probably forgetting something, but it’s getting late. Hopefully it’ll come back and bite me sooner rather than later.









