Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site vaxine.UUCP Path: utzoo!linus!vaxine!ptw From: ptw@vaxine.UUCP (P. T. Withington) Newsgroups: net.bugs.4bsd,net.bugs.usg Subject: "dd bs=2 conv=swab" == "cat" in 4.1bsd and sys3 (at least) Message-ID: <284@vaxine.UUCP> Date: Thu, 11-Aug-83 11:35:35 EDT Article-I.D.: vaxine.284 Posted: Thu Aug 11 11:35:35 1983 Date-Received: Thu, 11-Aug-83 16:53:57 EDT Organization: Automatix Inc., Billerica, MA Lines: 17 Setting a buffer size of two causes dd(1) to ignore the swab conversion. The problem is due to line 332(4.1) 338(sys3): c = (ibc>>1) & ~1; it should read: c = (ibc>>1); I believe the coder couldn't make up their mind whether to round down and count bytes, or to div and count words, so did both. (Am I right? Did I win?) Unless this is an undocumented feature... 't` --Tucker (ptw@vaxine.UUCP) ~