www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/19/19:53:07

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 19 Feb 2004 19:52:50 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: search and replace tool
In-Reply-To: <40355763.E01A2710@dessent.net>
Message-ID: <Pine.GSO.4.56.0402191952150.22216@slinky.cs.nyu.edu>
References: <291592011 DOT 20040218205953 AT thequod DOT de> <6 DOT 0 DOT 1 DOT 1 DOT 0 DOT 20040218151724 DOT 0398d488 AT 127 DOT 0 DOT 0 DOT 1> <40354B21 DOT 6040802 AT x-ray DOT at> <Pine DOT GSO DOT 4 DOT 56 DOT 0402191929000 DOT 22216 AT slinky DOT cs DOT nyu DOT edu> <40355763 DOT E01A2710 AT dessent DOT net>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Thu, 19 Feb 2004, Brian Dessent wrote:

> Igor Pechtchanski wrote:
>
> > On Fri, 20 Feb 2004, Reini Urban wrote:
> >
> > > But fixing perl's long-standing inability to do direct inline editing
> > > via perl -i would be cygwin specific.
> > > Anyone investigated this lately?
> >
> > What on Earth are you talking about?  What inability?  WFM (see below).
> > ...
> > $ perl -i -pe 's/blah/stuff/g' sometext
> > $ ls
> > sometext  sometext.bak
>
> It didn't do the editing "inline", it created a new file and renamed the
> old one ".bak".  In other words, on Cygwin "-i" is really "-i.bak".  If
> you try the above sequence on linux you don't get a .bak file and the
> changes are truly done in-place.  I assume this relates to differences
> in filesystem semantics.
>
> Brian

I stand corrected.  Thanks for the explanation.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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