From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,515efa3e7daac06f,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 2001-06-29 13:06:17 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!bnewspeer00.bru.ops.eu.uu.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!cass.news.pipex.net!pipex!warm.news.pipex.net!pipex!news.tarantella.com!not-for-mail From: "Bill Weir" Newsgroups: comp.unix.osf.osf1 Subject: dd ate my data Date: Wed, 27 Jun 2001 11:52:14 +0100 Organization: Tarantella, Inc. Message-ID: <9hce5s$2el$1@avon.tarantella.com> NNTP-Posting-Host: billwe.london.sco.com X-Trace: avon.tarantella.com 993639420 2517 150.126.27.94 (27 Jun 2001 10:57:00 GMT) X-Complaints-To: cid_news@tarantella.com NNTP-Posting-Date: Wed, 27 Jun 2001 10:57:00 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.unix.osf.osf1:12 Can anyone help with this curious problem? $ echo -n 0123456789 >10bytes $ (dd bs=1 count=5 >5bytes ; dd bs=1 >remainder) <10bytes 5+0 records in 5+0 records out 2+0 records in 2+0 records out $ ls -l -rw-r--r-- 1 root system 10 Jun 27 10:16 10bytes -rw-r--r-- 1 root system 5 Jun 27 10:16 5bytes -rw-r--r-- 1 root system 2 Jun 27 10:16 remainder What happened to the other 3 bytes? In fact it's worse than this, because the result is not even predictable; I've seen the remainder file contain anything from 0 to 3 bytes. I have run the same commands on Linux, Solaris, UnixWare, SCO Open Server, HP-UX, and AIX, and they work correctly on all those platforms (5 byte remainder). It's just good old Compaq Tru64 that misbehaves. Regards, -- Bill Weir Senior Software Engineer, Tarantella Inc.