SunOS 3.5 dd (ibs == obs) != bs

mcneill mcneill at eplrx7.UUCP
Thu Nov 10 04:34:57 AEST 1988


In using dd in a pipe such as:

   rsh otherhost "tar cbf 512 - ." | dd bs=262144 of=/dev/rst9

I noticed that this does not work, but:

   rsh otherhost "tar cbf 512 - ." | dd obs=262144 ibs=262144 of=/dev/rst9

works just fine.  I looked at the System V source for dd and saw something 
like:

   if (bs) ibs = obs = bs;

which leads me to believe that setting bs should do the same thing as 
setting both ibs & obs.

Does BSD do something different which makes this feature or did I miss
something in the source.


-- 
    Keith D. McNeill              |    E.I. du Pont de Nemours & Co.
    uunet!eplrx7!mcneill          |    Experimental Station
    (302) 695-7395                |    P.O. Box 80357
                                  |    Wilmington, Delaware 19880-0357



More information about the Comp.unix.questions mailing list