Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: "Gerrit P. Haase" <gp@familiehaase.de>
Organization: Esse keine toten Tiere
To: Karl Zilles <zilles@1969.ws>
Date: Sat, 25 Aug 2001 11:42:15 +0200
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: Re: Perl problem still..
Reply-to: cygwin@cygwin.com
CC: cygwin@cygwin.com
Message-ID: <3B878F17.11478.B3BA512@localhost>
In-reply-to: <3B86EE73.8FB1D14A@1969.ws>
X-mailer: Pegasus Mail for Win32 (v3.12cDE)
X-Hops: 1
X-Sender: 320081107336-0001@t-dialin.net

Karl Zilles schrieb am 2001-08-24, 17:16:

>This was discussed many moons ago from the old perl version and I was
>hoping to see a fix in the new release.
>
>If I go to a text mounted directory and execute
>
>perl -p -i -e ';' textfile.txt

How should that work on windows?

I got another error here:
$ perl -p -i -e ';' textfile.txt
Can't do inplace edit on textfile.txt: Permission denied.

>Then every line in the textfile receives an extra '\r'.  So, this being
>a dos text file, it gets two '\r's on every line.

I'm looking into this issue right now and i think i fixed it, but needs
more testing. I got a miniperl version here which works correct with 
linefeeds on textmounts. I'm sure in the next release (probably soon) 
this bug is fixed.

>It appears that the file is being read in binary mode, and written in
>text mode.  

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/

