delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Subject: | RE: Continuing CR/LF Problems |
Date: | Tue, 30 Jan 2007 15:12:17 -0500 |
Message-ID: | <31DDB7BE4BF41D4888D41709C476B657068AA920@NIHCESMLBX5.nih.gov> |
In-Reply-To: | <040a01c74494$423051e0$2e08a8c0@CAM.ARTIMI.COM> |
References: | <D1910DC3A90FB84ABD07C7162BA3349A7D0539 AT itexch01 DOT 170systems DOT com> <040a01c74494$423051e0$2e08a8c0 AT CAM DOT ARTIMI DOT COM> |
From: | "Buchbinder, Barry \(NIH/NIAID\) [E]" <BBuchbinder AT niaid DOT nih DOT gov> |
To: | <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id l0UKCU6D015315 |
Dave Korn wrote on Tuesday, January 30, 2007 12:30 PM: > On 30 January 2007 15:50, Eramo, Mark wrote: > >> As part of this multiplatform installer it generates a setup.sh >> script from information in the Installshield jars. When the setup.sh >> is produced, all the lines are terminated with a "^M" > > That'll be the bug then. Report it upstream to the Ant maintainers. > >> If you look at SHELLOPTS in the environment, it indicates that it >> knows about the igncr setting. >> >> "SHELLOPTS=braceexpand:emacs:hashall:histexpand:igncr:interactive-comm >> en ts:monitor" > > There's nothing that bash can do about this. It's not bash that > creates these scripts, it's the installshield program. > >> I cannot do a simple d2u because there are some "^M's" that need to >> be in the file and this will remove them thus corrupting the file. > > What?! This is a shell script, intended to run on a linux-alike > system which doesn't understand ^M. How can they be "necessary"? On a binary mount, just running something through sed will remove \r ("^M") from the line ends without removing other occurrences of \r. /c> echo -e '1111\r22\r' | od -c 0000000 1 1 1 1 \r 2 2 \r \n 0000011 /c> echo -e '1111\r22\r' | sed -e 's/ / /' | od -c 0000000 1 1 1 1 \r 2 2 \n 0000010 Use of the sed -i option will modify files in place. Try it. YMMV - Barry - Disclaimer: Statements made herein are not made on behalf of NIAID. -- 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 |