This is the mail archive of the
mailing list for the Cygwin project.
Re: Howto set default text file type to DOS/Text under release 1.7 BETA
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 28 Oct 2009 14:42:35 -0400
- Subject: Re: Howto set default text file type to DOS/Text under release 1.7 BETA
- References: <email@example.com>
- Reply-to: cygwin at cygwin dot com
On 10/28/2009 07:59 AM, Niels Hallenberg wrote:
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.
I can, using the mount-command
$ mount -f -o text,posix=0 c: /cygdrive/c
change the mode to text:
However, this does not fix the problem and I still get the error:
./foo.sh: line 1: $'\r': command not found
./foo.sh: line 13: syntax error: unexpected end of file
Have you tried all Eric's advice in his bash upgrade announcements?
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
> 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple