* dd ate my data
@ 2001-06-27 10:52 Bill Weir
0 siblings, 0 replies; only message in thread
From: Bill Weir @ 2001-06-27 10:52 UTC (permalink / 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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-06-27 10:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-27 10:52 dd ate my data Bill Weir
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox