delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/17/07:30:01

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
To: cygwin AT cygwin DOT com
Subject: Erroneous line endings (cat,gawk,text mount)
From: Roman Belenov <rbelenov AT yandex DOT ru>
Date: Thu, 17 Apr 2003 15:29:31 +0400
Message-ID: <uk7dtgy5g.fsf@yandex.ru>
Lines: 17
User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2
(i386-msvc-nt5.1.2600)
MIME-Version: 1.0

I encountered that cygwin tools can generate file with strange line
endings in certain situation. I have a file (name it foo.txt) with
dos-style line endings in  text mounted directory. If I do
    gawk {print;} <foo.txt >bar.txt
or
    cat foo.txt >bar.txt
I get a copy of foo.txt. But if I do
    cat foo.txt | gawk {print;} >bar.txt
I get 0xd doubled in line separators (so lines are separated with 0xd
0xd 0xa in bar.txt).

<disclaimer>
This is just a bug report, I don't expect timely reaction of any kind.
</disclaimer>

-- 
 							With regards, Roman.


--
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