cp to infinity.

illoai at gmail.com illoai at gmail.com
Wed Jan 24 22:23:27 UTC 2007


On 24/01/07, Stevan Tiefert <stevan-tiefert at t-online.de> wrote:
> Am Mittwoch, 24. Januar 2007 12:50 schrieb Peter Ankerstål:
> > > Sure, just don't copy directories into themselves
> > > recursively.
> >
> > How hard could it be to make cp avoid this problem?
> > GNU cp does not have any problems with this action.

> You need only to write a patch and send it to the developers and voilà
> you have what you want!
>

I doubt it.
"name too long (not copied)"
Seems a lot more hand-holdy than just consuming
all of your inodes and crashing in an undignified manner
(which is what I would have bet on).
The lesson is:  be more careful with your wildcards,
this is OS, not AI*.


*Doing stupid things just as quickly and efficiently as
smart things is proper operating system design, if
you ask me.
-- 
--


More information about the freebsd-questions mailing list