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?


On 3/29/2011 08:30, Dante Allegria wrote:
> Thorsten Kampe wrote:
>> 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.
> 
> Thanks for the tip, Thorsten! Any ideas what the best practice is for doing this in Makefile rules? It seems rather onerous to put this in *every* rule.

Set the SHELLOPTS environment variable before calling make.  Set each
option you wish to enable in a colon separated list.  Read the bash
manpage for more details about that environment variable and the set
builtin command.

-Jeremy

--
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]