EXTERNAL: Virus that deletes everything under c:/cygwin?
Thorsten Kampe
thorsten@thorstenkampe.de
Tue Mar 29 13:26:00 GMT 2011
* Dante Allegria (Mon, 28 Mar 2011 10:07:32 -0700 (PDT))
> No, turns out it was because someone committed this into the nightly
> build scripts:
> rm -rf $(DOES_NOT_EXIST)/*
>
> <sigh> Should cygwin's rm have some built-in safeguards for this? :)
Sure, it does. It's called "intelligent scripting" and it includes
setting "errexit" and "nounset" in bash or Z Shell. If you are scripting
and not using those above, then you got exactly what you deserved.
Thorsten
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list