delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Subject: | Continuing CR/LF Problems |
Date: | Tue, 30 Jan 2007 10:50:18 -0500 |
Message-ID: | <D1910DC3A90FB84ABD07C7162BA3349A7D0539@itexch01.170systems.com> |
From: | "Eramo, Mark" <meramo AT 170Systems DOT com> |
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-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 l0UFoTP9017181 |
Hello, I have been struggling for some time trying to resolve the dreaded CR/LF Problem. I am running Ant 1.6.2 builds on Windows XP SP 2 using Cygwin version 1.5.24-1 and Bash version 3.2.9-11. The Ant builds are running an Installshield 11.5 command line interface to create a multiplatform installer. 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" I have researched the problem on the web and the message board to try and get some help in resolving this but so far no luck. For an example, here is what is being produced. main()^M {^M sh_args="$@"^M VERSION=1.0.0.20028^M DBG=0^M DEFAULT_LC_ALL=$LC_ALL^M DEFAULT_LANG=$LANG^M LC_ALL=C^M LANG=C^M while [ $# -gt 0 ] ; ^M do^M case "$1" in^M --) shift; break;; ^M -is:javahome) ISJAVAHOME="$2"; shift;; ^M -is:log) DBG=1;LOG="$2"; shift;; ^M -is:tempdir) ISTEMP_HOME="$2"; shift;; ^M -is:silent) SILENT=true;; ^M Anyway, I have tried the 3 most recommended ideas to resolve this..... 1) I set SHELLOPTS=igncr in my Windows environment and then run Cygwin. No effect. 2) I run Ant from a Cygwin binary mount. No effect. 3) I tried rolling back to earlier versions of bash but again no luck The base scripts in the Installshield jars seem fine, no CR/LF at the end. The environment just creates it in DOS format regardless of my settings. If you look at SHELLOPTS in the environment, it indicates that it knows about the igncr setting. "SHELLOPTS=braceexpand:emacs:hashall:histexpand:igncr:interactive-commen ts:monitor" 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. Sorry to be wasting anyone's time by posting this as I know there is a lot on this in the mailing list archives but I did do my best and go through many of the archives in the mailing list trying to come up with a solution before I posted. Any help would be much appreciated. Regards, Mark -- 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 |