Path: utzoo!utgpu!watserv1!watmath!uunet!shelby!apple!rutgers!rochester!ken From: ken@cs.rochester.edu (Ken Yap) Newsgroups: unix-pc.general Subject: Re: bsplit? Message-ID: <1990Feb3.170608.600@cs.rochester.edu> Date: 3 Feb 90 17:06:08 GMT References: <12897@cbnewsc.ATT.COM> <26143@cup.portal.com> <1990Jan23.040408.27311@banzai.PCC.COM> <1990Feb3.045134.26715@chinet.chi.il.us> Reply-To: ken@cs.rochester.edu Organization: University of Rochester Computer Science Department Lines: 10 Address: Rochester, NY 14627, (716) 275-1448 |The real problem, though is that you can't feed the script from a |pipe. dd is almost unique among the unix tools in that it |uses read() rather than fread() and will fail to read the |requested amount if the input pipeline cannot stay ahead. There is a good reason for that, the semantics of reading large blocks from tape have to be preserved. If stdio were used, the block size would be whatever stdio happened to use. No doubt dd could be taught to tell the difference between tape and pipes but nobody wants to mess with nostalgia. :-)