From: lhall AT rfk DOT com (Larry Hall) Subject: Re: CRLF in cat output breaks scripts. 14 Sep 1998 03:42:59 -0700 Message-ID: <3.0.5.32.19980913200920.00966560.cygnus.gnu-win32@pop.ma.ultranet.com> References: <35fc7cf7 DOT 582157 AT mail DOT weiser DOT saale-net DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: michael AT weiser DOT saale-net DOT de (Michael Weiser), john_r_velman AT mail DOT hac DOT com Cc: gnu-win32 AT cygnus DOT 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\ 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 AT rfk DOT 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 AT cygnus DOT com" with one line of text: "help".