delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/29/05:13:00

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: EXTERNAL: Virus that deletes everything under c:/cygwin?
Date: Tue, 29 Mar 2011 11:12:23 +0200
Lines: 12
Message-ID: <ims7q0$9pv$1@dough.gmane.org>
References: <4D90B414 DOT 4040605 AT lmco DOT com> <468547 DOT 38757 DOT qm AT web52801 DOT mail DOT re2 DOT yahoo DOT com>
Mime-Version: 1.0
User-Agent: MicroPlanet-Gravity/3.0.4
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

* 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019