CRLF in cat output breaks scripts.

Larry Hall
Sun Sep 13 18:50:00 GMT 1998

At 01:57 PM 9/12/98 GMT, Michael Weiser wrote:
>Hello john, you wrote:
>>I must be missing something!  
>Jep. ;)
>>cat and other commands that use > to write files, put in CR's so that
>>we end up with CRLF at the end of every line.
>Just change to binary mounts (e.g. by setting fbinary under
>HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL
>Setup\b15.0\mounts\<nr> to 1 for all your mounts).
>bye, Michael

Actually, this isn't going to fix this problem.  The bash that comes with 
the distribution is set so that stdin, stdout, and pipes write in text mode.
If you really want these to work as they should, you need to either get 
the original bash source from a GNU archive or modify execute_cmd.c in the
bash source provided by Cygnus and remove the _setmode() statements...

Larry Hall                    
RFK Partners, Inc.                      (781) 239-1053
8 Grove Street                          (781) 239-1655 - FAX
Wellesley, MA  02482-7797     
For help on using this list (especially unsubscribing), send a message to
"" with one line of text: "help".

More information about the Cygwin mailing list