Howto set default text file type to DOS/Text under release 1.7 BETA

Larry Hall (Cygwin) reply-to-list-only-lh@cygwin.com
Wed Oct 28 18:42:00 GMT 2009


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



More information about the Cygwin mailing list