From: lhall AT rfk DOT com (Larry Hall) Subject: Re: cat and binary files 11 Apr 1997 03:48:01 -0700 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <2.2.32.19970411015452.00939c60.cygnus.gnu-win32@ma.ultranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Sender: lhall AT ma DOT ultranet DOT com X-Mailer: Windows Eudora Pro Version 2.2 (32) Original-To: marc AT watson DOT ibm DOT com, marc AT watson DOT ibm DOT com Original-Cc: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com At 03:17 PM 4/10/97 -0400, Marc Auslander wrote: >I tried doing binary mounts with the following results. > >1. cat now produces a file larger than the sum of the input file >sizes. I tried this and I cannot reproduce it. You need to provide more information about what you started with and what you did. Mine equals out just as you'd expect. >2. bash gets confused reading .bashrc Your .bashrc may have CRs in it. Remove them and I'll bet your problems go away. In general, if you change from text mounts (the default, although I'd say it causes more harm than good) to binary mounts, all files that were in any way written previously will likely contain CRs which may cause you problems. This includes all files extracted from all.tar. You'll either need to reinstall or filter all suspected files to remove the CRs. >3. I don't know how to get binary while using explicit path notation. I don't know what you mean by this. Can you elaborate? >So I'll go back to text mode mounts for now, and if necessary write a >cat that works. If you feel you must make a change to cat, simply get the source and add the "b" flag to all fopens. It shouldn't be any more difficult than that.... > >Marc Auslander 914 945-4346 (Tieline 862 Fax x4426) Larry Hall lhall AT rfk DOT com RFK Partners, Inc. (617) 239-1053 8 Grove Street (617) 239-1655 - FAX Wellesley, MA 02181 - 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".