Re: cp to infinity.
On 24/01/07, Stevan Tiefert <[EMAIL PROTECTED]> 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. -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: cp to infinity.
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. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" You need only to write a patch and send it to the developers and voilà you have what you want! pgpivzm4OheS8.pgp Description: PGP signature
Re: cp to infinity.
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. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: cp to infinity.
On 1/24/07, Peter Ankerstål <[EMAIL PROTECTED]> wrote: > cd test/ > mkdir foo > touch bar > cp -r * foo/ cp: name too long (not copied) cp: name too long (not copied) It seems FreeBSD cp tries to copy the directory to infinity. Is there an option to avoid this? Sure, just don't copy directories into themselves recursively. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"