This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: EXTERNAL: Virus that deletes everything under c:/cygwin?
* 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