X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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: References: <46F46079 DOT 4050803 AT byu DOT net> <46F50A76 DOT 7030106 AT byu DOT net> From: "Bengt-Arne Fjellner" To: "Steve Richmond" , Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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/