This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]