From mboxrd@z Thu Jan 1 00:00:00 1970 From: Larry Hall To: marc@watson.ibm.com, marc@watson.ibm.com Cc: gnu-win32@cygnus.com Subject: Re: cat and binary files Date: Fri, 11 Apr 1997 01:45:00 -0000 Message-id: <2.2.32.19970411015452.00939c60@ma.ultranet.com> X-SW-Source: 1997-04/msg00196.html 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@rfk.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@cygnus.com" with one line of text: "help".