delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.0 required=5.0 tests=BAYES_00,FROM_LOCAL_NOVOWEL,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | ttjqryfbndgdx <ttjqryfbndgdx AT mailinator DOT com> |
Subject: | Additional carriage return added by cygwin commands to DOS text files |
Date: | Wed, 7 Oct 2009 14:11:45 +0000 (UTC) |
Lines: | 25 |
Message-ID: | <loom.20091007T161054-245@post.gmane.org> |
Mime-Version: | 1.0 |
User-Agent: | Loom/3.14 (http://gmane.org/) |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
I know it's a common issue, but I didn't find a solution to my problem in the archive. I have a "dos" file (lines ends with carriage return+line feed : 0d0a in Hex) : bash-3.2$ xxd test1 0000000: 6161 610d 0a62 6262 0d0a aaa..bbb.. If I apply a cygwin command to this file, I get an additional carriage return : bash-3.2$ grep -E 'a|b' test1 > test2 bash-3.2$ xxd test2 0000000: 6161 610d 0d0a 6262 620d 0d0a aaa...bbb... I chose dos mode when installing cygwin. My filesystems are mounted "textmode" bash-3.2$ mount c:\win32app\cygwin\bin on /usr/bin type system (textmode) c:\win32app\cygwin\lib on /usr/lib type system (textmode) c:\win32app\cygwin on / type system (textmode) c: on /cygdrive/c type system (textmode) I have no CYGWIN environment variable set Is what I get the "normal" behaviour with thos parameters? What can I do so that when I use some cygwin command on a "dos" file I get a "dos" file in the output? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |