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 To: cygwin AT cygwin DOT com Subject: Erroneous line endings (cat,gawk,text mount) From: Roman Belenov Date: Thu, 17 Apr 2003 15:29:31 +0400 Message-ID: Lines: 17 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-msvc-nt5.1.2600) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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;} 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). This is just a bug report, I don't expect timely reaction of any kind. -- 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/