delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/03/11:43:19

X-Spam-Check-By: sourceware.org
From: "Turly O'Connor" <turly AT fnarr DOT net>
To: <cygwin AT cygwin DOT com>
Subject: bash scripts fail with bash3.1-8
Date: Tue, 3 Oct 2006 17:42:56 +0200
Message-ID: <002101c6e702$9978f5f0$04fa080a@CORK.ARRISI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Hi there,

I use ClearCase via cygwin and had a handy bunch of scripts
which stopped working when I upgraded to the latest bash last
week.  A quick perusal of the mailing list revealed that the
latest bash no longer strips CRs where it used to.

By way of an example as to what broke, note that in the following
that  "cleartool" is not a cygwin tool (it's a Windows executable),
writing its CRLF-terminated output to Windows' stdout.

CHECKOUTS=`cleartool lsc -all -cvi -s`  # list all my checkouts

I used to be able to do

for one in $CHECKOUTS ; do echo $one Hello ; done

C:/Path/To/file1 Hello
C:/Path/To/file2 Hello

Now it seems that "$one" above contains the binary CR, so I get:

Hello h/To/file1
Hello h/To/file2

What do I need to do to get this working again?

Thanks!

--turly
--
I started out with nothing... I still have most of it. 



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019