> Date: Thu, 24 Jun 1993 09:30:08 -0400 (EDT)
> From: [EMAIL PROTECTED]
> References: <[EMAIL PROTECTED]>
>
> [EMAIL PROTECTED] (Chris Cowan) writes:
> > Presently, the customer is using a shell script wrapper around "cp -r".
> > (I realize that this is probably the worst possible approach due to things
> > like interpretive overhead and the fact that cp does absolutely no buffering
> > to my knowledge).
>
> Does "cp -r" do a depth-first traversal or a breadth-first traversal?
>
> Lyle Transarc 707 Grant Street
> 412 338 4400 The Gulf Tower Pittsburgh 15219
>
I checked the AIX man pages on it and it doesn't say. Since cp is a "POSIX"
command, I'm wondering whether this behavior is specified by them.
Anyway, I did some testing and it appears to be breadth-first. (Since it isn't
specified, I have to assume that this could change, however!) I'm going to try and
get on an HP (and possibly) a Sun to see if they are breadth-first, too!
Chris Cowan
ISSC/SER AFS Support Team
----------------------------------------
Internet: [EMAIL PROTECTED]
IBM VNET: cc at austin