This is the mail archive of the
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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple