delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | "Dan Haynes" <haynes AT awii DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: CRLF question (yeah, again :-p) |
Date: | Mon, 8 Jan 2001 20:24:40 -0700 |
Message-ID: | <000801c079eb$b38d47f0$6401a8c0@tached> |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook 8.5, Build 4.71.2173.0 |
Importance: | Normal |
In-Reply-To: | <3A5A36BC.8B2C4DBA@yahoo.com> |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
Great! Thank you! Regards, Dan > -----Original Message----- > From: cygwin-owner AT sources DOT redhat DOT com > [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Earnie Boyd > Sent: Monday, January 08, 2001 2:53 PM > To: Dan Haynes > Cc: cygwin AT cygwin DOT com > Subject: Re: CRLF question (yeah, again :-p) > > > Dan Haynes wrote: > > > Running into a small issue with CR LF expansion again and I can't quite > > figure out if this is expected behaviour or not. > > > > We're using a clean install of Cygwin 1.7 on NT 4.0 SP6a, all mounts are > > text mode, all mounts on NTFS volumes. > > > > In a makefile I do > > > > cmd /c "dir /ad /b" | sort >foo > > > > ...and the lines end up with extra CR characters appended (CR > CR LF at the > > end of the lines) > > > > Changing the command line to: > > > > cmd /c "dir /ad /b" >foo1 > > sort foo1 >foo > > > > ...works fine. > > > > I verified that sort.exe is the Cygwin version and not the NT one. > > > > Is it to be expected that piping the output of a Win32 app to a > Cygwin app > > might/will result in end-of-line character confusion? Or should > this work > > and I need to look at sort to find out what's happening? > > > > The default mode for pipes in cmd.exe is now textmode. Add the `binmode' > qualifier to your CYGWIN environment variable and restart all Cygwin > processes to change the processing mode to binary mode for pipes. > > Cheers, > Earnie. > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > -- > Want to unsubscribe from this list? > Check out: http://cygwin.com/ml/#unsubscribe-simple > -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |