delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4570FA79.6040707@qualcomm.com> |
Date: | Fri, 01 Dec 2006 20:00:57 -0800 |
From: | Rob Walker <rwalker AT qualcomm DOT com> |
User-Agent: | Thunderbird 1.5.0.8 (Windows/20061025) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: bash scripting problem |
References: | <003401c715b6$a874da50$020aa8c0 AT DFW5RB41> |
In-Reply-To: | <003401c715b6$a874da50$020aa8c0@DFW5RB41> |
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 |
Gary R. Van Sickle wrote: >> From: Rob Walker >> Sent: Friday, December 01, 2006 5:29 PM >> Subject: Re: bash scripting problem >> >> Eric Blake wrote: >> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA1 >>> >>> According to Andrew Louie on 12/1/2006 3:17 PM: >>> >>> >>>>> You have DOS line endings in these files. Use 'd2u' to >>>>> >> remove them. >> >>>>> >>>>> >>>> Thanks! I would have never known that, >>>> >>>> now, can i run d2u on every file in my installation? >>>> >>>> >>> No, only run it on text files (it corrupts binary files, >>> >> such as *.exe). >> >>> >>> >> d2u may also corrupt "text" files that need to have CR in >> them. This includes bash scripts that need to parse or output CR. >> >> -Rob >> > > Do you have a link to such a script? I don't mean a proof-of-principle; I'm > sure a suitable example can be contrived. What I'm looking for is a shell > script "in the wild" that purposely has a carriage return embedded in it for > reasons other than ending a line of the script. > No, I don't have any such examples, sorry. My response was a bit tongue-in-cheek. When earlier I'd complained about igncr not being the Cygwin default, the existence of these scripts (which could easily be corrupted by d2u) was offered as one justification for this choice. -Rob -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |