From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2805 invoked by alias); 3 May 2002 18:17:19 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 2761 invoked from network); 3 May 2002 18:17:14 -0000 Received: from unknown (HELO koeln.convey.de) (62.138.63.18) by sources.redhat.com with SMTP; 3 May 2002 18:17:14 -0000 Received: from ismene.koeln.convey.de (192.168.5.3) by koeln.convey.de with [XMail 1.8 (Win32/Ix86) ESMTP Server] id for from ; Fri, 03 May 2002 20:17:12 +0200 Date: Fri, 03 May 2002 11:17:00 -0000 From: "Gerrit P. Haase" Reply-To: "Gerrit P. Haase" Organization: don't eat dead animals X-Priority: 3 (Normal) Message-ID: <120108386090.20020503201623@nyckelpiga.de> To: cygwin@cygwin.com Subject: Re: perl -i is very dangerous ! In-Reply-To: <3CD2B64F.5090005@wanadoo.fr> References: <3CD2B64F.5090005@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00197.txt.bz2 Marc schrieb: > mc@MILLENIUM:~/test/perldestroy# cat test.txt > this is > a test > for cygwin > mc@MILLENIUM:~/test/perldestroy# perl -i -ne 's/this/works/' test.txt > Can't do inplace edit on test.txt: Permission denied. > mc@MILLENIUM:~/test/perldestroy# ls > any idea ? It is gone. Use perl -i.bak instead. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/