www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4AE8909B.5070100@cygwin.com> |
Date: | Wed, 28 Oct 2009 14:42:35 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Howto set default text file type to DOS/Text under release 1.7 BETA |
References: | <9fffda390910280459y2883a25ag5fbe175eb1552999 AT mail DOT gmail DOT com> |
In-Reply-To: | <9fffda390910280459y2883a25ag5fbe175eb1552999@mail.gmail.com> |
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 |
On 10/28/2009 07:59 AM, Niels Hallenberg wrote: > Hi, > > I have just installed release 1.7 under Windows 7, 64bit. The > setup.exe program seems to have changed and you can't any longer set > the Default Text File Type to DOS/Text. I have a lot of scripts that > won't run under bash as long as the extra CR's are not removed. I know > of the tool doc2unix, however there are other obstacles too so having > the auto-conversion is the best solution for me. <snip> > I can, using the mount-command > > $ mount -f -o text,posix=0 c: /cygdrive/c > > change the mode to text: <snip> > However, this does not fix the problem and I still get the error: > > $ ./foo.sh > ./foo.sh: line 1: $'\r': command not found > ./foo.sh: line 13: syntax error: unexpected end of file <snip> > Any ideas? Have you tried all Eric's advice in his bash upgrade announcements? <http://sourceware.org/ml/cygwin-announce/2009-07/msg00002.html> -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |