directory copying with cp; broken?

Richard A. O'Keefe ok at quintus.uucp
Thu Oct 6 09:15:51 AEST 1988


In article <30506 at bbn.COM> mesard at bbn.com (Wayne Mesard) writes:
>Indeed.  And more generally, a consistent way of handling directories
>(i.e. directory files) needs to be established.  In SunOS 3.4:
>  head, tail, cat <dir>     ==>  {works}

Are you sure about that?  In both SunOS 3.2 and SunOS 4.0,
	% cat .
	cat: read error: Is a directory
In straight 4.2BSD, if you read a directory, you get the file names &c,
but in SunOS 3.x and 4.x, a directory always appears to be empty.  So
"wc $Directory" in SunOS will always print "0 0 0".



More information about the Comp.unix.wizards mailing list