From: fjh@cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: split and cat (NBY)
29 Jan 1998 11:36:41 -0800
Message-ID: <19980129224927.52133.cygnus.gnu-win32@mundook.cs.mu.OZ.AU>
References: <34C91A31.36F6AA85@eml.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
To: gnu-win32@cygnus.com

On 28-Jan-1998, hgfernan@usp.br <hgfernan@usp.br> wrote:
> On 23 Jan 98 at 22:31,  malcolm <malcolm@eml.co.uk> wrote:
> 
> > Are split and cat supposed to work properly as a means of splitting
> > large binary files and joinging the pieces back together. I find that
> > split craps out having performed a good job of creating nothing useful.
> > If I use split on a Linux box and then try to use cat to put the bits
> > back together, that fails as well. Typical files I have tried are 10+MB
> > being split into 1MB chunks.
> > 
> > Just curious to hear if anyone has got them to work - in which case its
> > my setup. Or if its a common problem, is a fix on the way?
> 
> congratulations: like everybody else you've been bitten by the
> binary/non-binary file dichotomy in gnu-win32. :-)

Homework exercise: patch `split' so that it opens its files in binary mode.

(`cat' is a bit more troublesome, but adding a `--binary' option should
not be too hard.)

-- 
Fergus Henderson <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
