(no subject)

Jan 24, 2006 14:47

Just spent about 40 minutes trying to get an ant file to build something in cygwin. I was just trying to copy a file to the server deploy directory... and I couldn't give a global path using $HOME or whatever.. it wasn't interpreting the normal shell variables. And I couldn't give a global path starting from root.. like "C:/bla" it would just make that "./C:/bla".

I tried using the ~ symbol, which just made a directory called ~ in my current dir. Then I did something really stupid
rm -rf ~ - forgetting to put the backslash in front, and it started deleting things wildly from my cygwin home dir (C:/).
I stopped it quickly, but I'm sure I've broken something now.. argh!!! I guess that's an important lesson anyway.. really need an rm script that copies stuff into a tmp directory.

Anyway, when I get stuck on stupid mundane things, I should be careful how much time I spend on it.

work

Previous post Next post
Up