On 10/19/07, Tom Van Looy <[EMAIL PROTECTED]> wrote:
>
> Richard Toohey wrote:
> > On 19/10/2007, at 8:12 PM, Raimo Niskanen wrote:
> >
> > Looks like OpenBSD, FreeBSD, and Mac OS X BSD bits have the same
> > sort of outcome.
> >
> >
> > Copy foo to foo only once and quit, I think that's the correct
> > behaviour. I even think that posix more or less describes that.
> >
> >
> > That's what it should be doing I guess. But it's tricky, if you start
> > doing symlinks etc, you'll end up looping sooner or later. What if the
> > directoy's are not named the same (eg: hard links)?
> >
> correction: hard links are not allowed on directory's, ...
> that being said, comparing inodes seems the best solution
>
> only, don't give an error but copy once
> maybe if I have time this weekend I'll try code that behaviour
>
> Anyway, it has worked like that since years, and I guess nobody has had
> a problem with it before. I don't think it should be changed just
> because some bored guy playing with it noticed strange output ;-p

Sure, but "bored guy" can translate to "new ideas" and testing
somehow-still-untested code paths. It's worth a shot at fixing.

-Nick

Reply via email to