This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin setup on XP/Vista (UNIX/DOS compatibilty question)

Hash: SHA1 -> redirecting to the list.

According to Steve Richmond on 9/22/2007 12:31 AM:
>>>> However it behaves differently. After I install it using UNIX, bash scripts
>>>> fail with '\r' errors, meaning it can't find the CR. So after I re-installed
>>>> to be DOS compatible for CR/LF, the bash scripts execute successfully, but
>>>> the resulting .CSV file has a '^M' added to each line. Subsequent
>>>> manipulation with paste (as an example) fail because of the extra '^M'.
> In your case, I'd recommend using a binary mount, and bash's igncr option.
> Oh, and reread the announcements:
>> After I reinstalled with the UNIX install option, I logged in and set igncr and
>> verified with 'set | grep SHELLOPTS'.  But grep adds an extra '^M' so
>> when I do 'paste -d, a.txt b.txt', paste gets confused.

The setup.exe UNIX vs. DOS option only affects new installations.  My
guess is that you have an existing text mount, which setup.exe won't
change; but to confirm that, you need to follow directions:

> Problem reports:

and include the output of 'cygcheck -svr' as a text attachment.

>> With the UNIX install option, I still can't run the bash scripts. It'll fail with
>> those '\r' errors still.

Again, bash only warns about \r errors on binary mounts if you have not
turned on the igncr option.  Of course, the other alternative is to run
'd2u' (or the new 'flip') on your scripts so that they no longer have \r.

- --
Don't work too hard, make some time for fun as well!

Eric Blake   
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]