delorie.com/archives/browse.cgi | search |
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 |
From: | "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de> |
To: | "Volker Quetschke" <quetschke AT scytek DOT de>, <cygwin AT cygwin DOT com> |
Subject: | RE: Perl with -i option removes files |
Date: | Wed, 22 Jan 2003 21:05:51 +0100 |
Message-ID: | <002701c2c251$a9f28ce0$0a1c440a@BRAMSCHE> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
In-Reply-To: | <3E2E65BB.5060401@scytek.de> |
> -----Original Message----- > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf > Of Volker Quetschke > Sent: Wednesday, January 22, 2003 10:35 AM > To: cygwin AT cygwin DOT com > Subject: Perl with -i option removes files > > > Hi! > > Following szenario: > > $ echo abc > testfile > > $ perl -p -i -e 's/b/x/g' testfile > Can't do inplace edit on testfile: Permission denied. > > $ ls -l testfile > ls: testfile: No such file or directory > > If I use: > $ perl -p -i".bak" -e 's/l/x/g' testfile > > I get an unchanged testfile.bak plus a changed testfile. > > Is this a bug or feature? > > $ cygcheck -c cygwin perl > Cygwin Package Information > Package Version > cygwin 1.3.17-1 > perl 5.6.1-2 > > on Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3. > > I also tested this sequence on: > > [q AT unics]~:{349}:$ uname -a > SunOS unics 5.8 Generic_108528-16 sun4u sparc SUNW,Ultra-Enterprise > [q AT unics]~:{351}:$ perl -v > This is perl, version 5.005_03 built for sun4-solaris > > where it doesn't remove the file. > > Bye > Volker > > -- > PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net > key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D > -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |