This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: CRLF in cat output breaks scripts.
- To: michael at weiser dot saale-net dot de (Michael Weiser), john_r_velman at mail dot hac dot com
- Subject: Re: CRLF in cat output breaks scripts.
- From: Larry Hall <lhall at rfk dot com>
- Date: Sun, 13 Sep 1998 20:09:20 -0400
- Cc: gnu-win32 at cygnus dot com
- References: <0EZ200216XWU8W@mail.hac.com><0EZ200216XWU8W@mail.hac.com>
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 lhall@rfk.com
RFK Partners, Inc. (781) 239-1053
8 Grove Street (781) 239-1655 - FAX
Wellesley, MA 02482-7797 http://www.rfk.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".