Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Bill Weir" <billwe@tarantella.com>
Subject: dd ate my data
Date: Wed, 27 Jun 2001 11:52:14 +0100	[thread overview]
Message-ID: <9hce5s$2el$1@avon.tarantella.com> (raw)

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 <billwe@tarantella.com> Senior Software Engineer, Tarantella Inc.




                 reply	other threads:[~2001-06-27 10:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox