delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/24/05:38:20

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: Cygwin setup on XP/Vista (UNIX/DOS compatibilty question)
Date: Mon, 24 Sep 2007 11:37:46 +0200
Message-ID: <7FE216529E1FE248A760B58F6B82A81002922FC6@EMMA.personal.adp.ltu.se>
In-Reply-To: <BAY107-W28ED2E0A6C01C55BDBD37DC1B60@phx.gbl>
References: <BAY107-W10CF8DAFB3960A14C0012AC1BB0 AT phx DOT gbl> <46F46079 DOT 4050803 AT byu DOT net> <BAY107-W89B048A790C16B12A357DC1B40 AT phx DOT gbl> <46F50A76 DOT 7030106 AT byu DOT net> <BAY107-W28ED2E0A6C01C55BDBD37DC1B60 AT phx DOT gbl>
From: "Bengt-Arne Fjellner" <bengt-arne DOT fjellner AT ltu DOT se>
To: "Steve Richmond" <srichman69 AT hotmail DOT com>, <cygwin AT cygwin DOT com>
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 l8O9c097030847

Steve Richmond wrote:
> Hi Eric,
> 
> I removed everything and completely re-installed Cygwin with
> setup.exe using the UNIX 
> binary option.  I 'set -o igncr' in .bashrc.  'set | grep SHELLOPTS'
> show igncr is set. 
> Yet the problems of bash scripts failing with '\r' errors and the
> resultant .CSV has 
> a '^M' added to each line still appear.  So it's going to take more
> than just installing 
> using a binary setup and setting igncr in bash to resolve the
> problems. 
> 
> I ran D2U on each bash script AND on the data files that it grep-ped
> within the 
> scripts.  Voila! Problem solved.  Each script and data file came from
> a WinME system 
> that had an aging version of cygwin (circa mid-2005).  I wrote a
> script to run every 
> file through d2u.  Interestingly that script had to be 'd2u-ed' first.
> 
> So I have a solution but I fail to see why the binary setup and igncr
> didn't work. 
> I don't want to run every file I bring over through d2u as it's
> laborious. 
> 

Try running mount and see what that says. I think mountoptions can
survive a reinstall.

-- 
Bengt-Arne Fjellner

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