delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/03/14:18:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Fri, 3 May 2002 20:16:23 +0200
From: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Reply-To: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
Organization: don't eat dead animals
X-Priority: 3 (Normal)
Message-ID: <120108386090.20020503201623@nyckelpiga.de>
To: cygwin AT cygwin DOT com
Subject: Re: perl -i is very dangerous !
In-Reply-To: <3CD2B64F.5090005@wanadoo.fr>
References: <3CD2B64F DOT 5090005 AT wanadoo DOT fr>
MIME-Version: 1.0

Marc schrieb:

> mc AT MILLENIUM:~/test/perldestroy# cat test.txt
> this is
> a test
> for cygwin
> mc AT MILLENIUM:~/test/perldestroy# perl -i -ne 's/this/works/' test.txt
> Can't do inplace edit on test.txt: Permission denied.
> mc AT 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/

- Raw text -


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