Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 10 Apr 2002 22:30:05 +0200
From: "Gerrit P. Haase" <gp@familiehaase.de>
Reply-To: "Gerrit P. Haase" <gp@familiehaase.de>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <76292587108.20020410223005@familiehaase.de>
To: "Peter Andersen" <datpete@daimi.au.dk>
CC: cygwin@cygwin.com
Subject: Re: Bug: Wrong text file type from CVS under Perl?
In-Reply-To: <000501c1e08f$06f3f140$99170b0a@w2kserver.daimi.au.dk>
References: <000501c1e08f$06f3f140$99170b0a@w2kserver.daimi.au.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hallo Peter,

Am 2002-04-10 um 14:55 schriebst du:

> I have set Default Text File Type to UNIX.
> This works fine if I check out a cvs repository (via ssh to a UNIX machine,
> i.e. CVS_RSH is "ssh") directly from the bash shell:

Yep, me too:
$ set | grep CVS_RSH
CVS_RSH=ssh

> bash$ cvs get -d me@someunix:/path/to/repository foobar

> However, if I do this in some perl script, using system(), all files checked
> out ends up with a (windows-style) ^M at the end of each line:

> bash$ perl 'system "cvs get -d me\@someunix:/path/to/repository foobar';"

perl -e 'system "cvs -d:pserver:me\@someunix:/path/to/repository foobar checkout";'

which is the correct syntax works for me, sorry, cannot reproduce it.
I guess if you checkout the files with dos lineendings someone has
checked them in with dos lineendings.

> I don't know if this is a known bug?

No bug for me.

> Output from cygcheck is below.
[...]


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/

