[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 21doc-cp-r-portability.diff
From: |
Derek Robert Price |
Subject: |
Re: 21doc-cp-r-portability.diff |
Date: |
Wed, 10 Nov 2004 19:37:20 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alexandre Duret-Lutz wrote:
>This minus `-r' just caught my eye.
>What should be preferred between `cp -R' and `cp -r'?
>
>Automake's lib/am/distdir.am uses `cp -R' and claims `cp -r' to
>be "almost always incorrect". This was introduced by
>
>1999-11-08 Tom Tromey <address@hidden>
>
> * automake.in (handle_dist_worker): Use `cp -R', not `cp -r'.
> From Jim Meyering. Also, don't mention file name in `cp'
> destination. From Olly Betts.
I would normally tend to trust the comments in autoconf or automake,
myself, but I'm pretty sure "almost always incorrect" is not the case,
or at least not the case any longer. At the least, we have the CVS
test suite running using the `cp -r' form on between 14 and 16
different platforms, a few of which could maybe be classified as
legacy. The short list (minus some duplicate OS versions, though
possibly not duplicate hardware) is:
IRIX64 sgcpu5 6.5 01091821 IP27
HP-UX hp186 B.11.00 U 9000/785 2002119839
BSD/OS 4.2 BSDI BSD/OS 4.2 Kernel #3 (i386)AIX rioscpu2 3 4 000030498200
RedHat 9 GNU/Linux (Linux 2.4.20-31.9 i386)
RedHat Fedora Core 1 GNU/Linux (Linux 2.4.22-1.2199.nptl i386)
AIX 4.3 (powerpc)
FreeBSD 4.2-RELEASE (i386)
NetBSD 1.6.1 (i386)
Redhat 7.3 GNU/Linux (i386)
Solaris 7 (sparc)
Solaris 8 (sparc)
Solaris 9 (sparc)
MacOS X - 10.2.8 (PowerBook)
Cheers,
Derek
- --
*8^)
Email: address@hidden
Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBkrQ/LD1OTBfyMaQRAmXeAJ0fXAr96r1hDul3DXaDOR/Ip0nQggCgsjjU
NeRP7v6iW5t1EWdd9Iwn1A4=
=CGtC
-----END PGP SIGNATURE-----