X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: Continuing CR/LF Problems Date: Tue, 30 Jan 2007 10:50:18 -0500 Message-ID: From: "Eramo, Mark" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit 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/