From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15200 invoked by alias); 7 Dec 2002 20:10:12 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 15193 invoked from network); 7 Dec 2002 20:10:12 -0000 Received: from unknown (HELO blueyonder.co.uk) (195.188.53.94) by sources.redhat.com with SMTP; 7 Dec 2002 20:10:12 -0000 Received: from pcow057o.blueyonder.co.uk ([127.0.0.1]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.757.75); Sat, 7 Dec 2002 20:10:11 +0000 Received: from leper (unverified [62.31.123.177]) by pcow057o.blueyonder.co.uk (Content Technologies SMTPRS 4.2.9) with SMTP id ; Sat, 7 Dec 2002 20:10:10 +0000 Message-ID: <000501c29e2c$a4430340$b17b1f3e@leper> Reply-To: From: To: Cc: Subject: Text file created from the keyboard is DOS termninated Date: Sat, 07 Dec 2002 13:37:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2002-12/txt/msg00435.txt.bz2 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 this is line2 $ 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 > this is line2 > X $ (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/