Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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, 28 Jun 2002 12:52:59 +0200 From: "Gerrit P. Haase" Reply-To: "Gerrit P. Haase" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <97357542939.20020628125259@familiehaase.de> To: "Max" CC: cygwin AT cygwin DOT com Subject: Re: perl and problem with in-place edits (just deletes files) on Cygwin 1.3.10 on Win98 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Max schrieb: > Ran this command the other day in a directory with C files > perl -p -i -e 's/string1/string2/g' *c > Got a long list of > Can't do inplace edit on name.c: File exists. > At the end of it, all the .c files were deleted .. I assume this is a > symlink issue .. that perl is calling > some system file linking function that isn't implemented properly or > implemented at all? > Output from perl -v: > This is perl, v5.6.1 built for cygwin-multi > I know that with the Win32 port it will not allow you to do an inplace edit > without specifying a backup > extension after -i, e.g. > perl -p -i.bak -e 's/string1/string2/g' glob > I assumed that since the Cygwin perl didn't give this warning it would do > the right thing ;) ... I am very thankful for > shareware undelete software now! > Anybody know what isn't in place for this to work correctly? It is fixed in perl-5.8, try a release candidate, point setup.exe to: http://koeln.convey.de/cywgin/ or: http://today.clemson.edu/cygwin/ NOTE: The RC2 tarball is linked against the cygwin-1.3.11 dll, RC1 is linked against cygwin-1.3.10, both Perl RC's are linked against BDB4 which is also available at these sites. I will upload a second release of perl-5.8-RC2 as soon as cygwin 1.3.11-4 is available (I expect this at the weekend), maybe there will be a third perl-release-candidate too. 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/