delorie.com/archives/browse.cgi | search |
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 |
X-MimeOLE: | Produced By Microsoft Exchange V6.0.6249.0 |
content-class: | urn:content-classes:message |
MIME-Version: | 1.0 |
Subject: | RE: Text file created from the keyboard is DOS termninated |
Date: | Sat, 7 Dec 2002 21:25:43 -0500 |
Message-ID: | <83040F98B407E6428FEC18AC720F5D732DB777@exchange.tropicnetworks.com> |
X-MS-Has-Attach: | |
X-MS-TNEF-Correlator: | |
From: | "Rolf Campbell" <rcampbell AT tropicnetworks DOT com> |
To: | <fergus AT bonhard DOT uklinux DOT net>, <cygwin AT cygwin DOT com> |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id gB82Pru04399 |
Your are using textmode mounts. Worx fine with binmode: /home/rcampbell> cat > a << A > a > a > A /home/rcampbell> od -tx1 < a 0000000 61 0a 61 0a 0000004 > -----Original Message----- > From: fergus AT bonhard DOT uklinux DOT net [mailto:fergus AT bonhard DOT uklinux DOT net] > Sent: Saturday, December 07, 2002 3:10 PM > To: cygwin AT cygwin DOT com > Cc: fergus AT bonhard DOT uklinux DOT net > Subject: Text file created from the keyboard is DOS termninated > > > I am set up for "Unix" rather than "DOS" and created a text > file directly from the keyboard by typing > > $ cat > textfile > this is line1 <press Enter> > this is line2 <press Enter> > <press Ctrl-D> > $ > > It turns out that the two-line file textfile created by this > method, is DOS-terminated. I was kind of thinking it would > (should?) be Unix-terminated. I know there are 100 threads on > line termination, but in contexts more sophisticated than > this. Please can somebody tell me whether this is a bug; or > meant to happen (if so, why); or comment with assurance that > my "Unix" set-up must be faulty in some way (correctable?) > > Thank you. By the way, if I try > > $ cat > textfile << X > > this is line1 <press Enter> > > this is line2 <press Enter> > > X <press Enter> > $ > > (where > is the provided prompt) then the two-line file > textfile is Unix-terminated. > > Fergus > > > -- > 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/ > > -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |