delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/26/10:07:50

X-Spam-Check-By: sourceware.org
From: "Peter Milne" <peter DOT milne AT netspeed DOT com DOT au>
To: <cygwin AT cygwin DOT com>
References: <001201c79ea3$4d82bce0$8500a8c0 AT RUSNAK> <4656D47E DOT 5050906 AT byu DOT net> <001201c79f49$b57b3c90$8500a8c0 AT RUSNAK> <46582F2B DOT 2000300 AT byu DOT net>
Subject: RE: [Spam?]Re: problem concating (>>) to a large file
Date: Sun, 27 May 2007 00:07:15 +1000
Message-ID: <000001c79f9f$2a59e7a0$8500a8c0@RUSNAK>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <46582F2B.2000300@byu.net>
X-X-SpamDetect: : 0.000000
X-IP-stats: Incoming Last 0, First 93, in=771, out=0, spam=0 ip=203.56.186.192
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi Eric

B is 71.8 Mbytes and and according to ls A (actually data.dat) is:
-rw-r--r-- 1 trader None 4540030014 May 26 12:00 data.dat

I'm running the latest version of cygwin.  I hope you are able to reproduce
the problem with dd using this information.

Cheers
    Peter

-----Original Message-----
From: Eric Blake [mailto:ebb9 AT byu DOT net] 
Sent: Saturday, 26 May 2007 10:59 PM
To: Peter Milne; cygwin AT cygwin DOT com
Subject: [Spam?]Re: problem concating (>>) to a large file

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

http://cygwin.com/acronyms/#PPIOSPE - redirecting to the list

According to Peter Milne on 5/25/2007 9:55 PM:
> Hi Eric
> 
> Thanks for responding to my query.
> 
> Brian Dessent also responded.  He suggested using the following command:
> 
> 	dd if=B of=A bs=64k conv=notrunc oflag=append
> 
> but this gave the same result as >>, that is, it stuck the contents of
file
> B at the front of A rather than at the end.

If that happened, it is a different bug, since dd does not go through the
stdio library, therefore does not see the bug in stdout being in 32-bit
mode instead of 64-bit mode.  Exactly how big are a and b?  I'd like to
try to reproduce this, and observe what strace has to say about it,
because I agree with Brian that it should work.

> It looks like dd is broken in
> this respect in the current version of cygwin.  I wonder if dd will come
> good in 1.70.0 too?  Do you have any idea when 1.70.0 will be released?

1.70.0?  Not for many, many more years (after all, the 1.5.x series lasted
for several years). :)  1.7.0, on the other hand, might be released this
year, once it is ready.  But in classic open source mindset, the release
will be sooner if you help.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGWC8r84KuGfSFAYARAqZPAKCbA1hzqmf7tZBwwsgmNf+Q1358SACfT8ze
fpNDzc7Zn40vc9I3SkGb08w=
=/ilm
-----END PGP SIGNATURE-----



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019