X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <4D91E0D7.40208@bopp.net> Date: Tue, 29 Mar 2011 08:38:31 -0500 From: Jeremy Bopp User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: EXTERNAL: Virus that deletes everything under c:/cygwin? References: <311778 DOT 81357 DOT qm AT web52807 DOT mail DOT re2 DOT yahoo DOT com> In-Reply-To: <311778.81357.qm@web52807.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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