]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(Limitations of Usual Tools): Avoid cp -r; use cp -R instead.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Nov 2004 00:13:20 +0000 (00:13 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Nov 2004 00:13:20 +0000 (00:13 +0000)
doc/autoconf.texi

index 1623ae990cade80a4c27c55e74f937e5bf39cc80..0eeb0e6d00b5e0bb699ea67d6f4abab800c8cd1a 100644 (file)
@@ -11223,10 +11223,15 @@ newline encoding.
 @item @command{cp}
 @c ---------------
 @prindex @command{cp}
+Avoid the @option{-r} option, since its behavior is not specified by
+Posix.  Use @option{-R} instead.  On @acronym{GNU} hosts the two options
+are equivalent, but on Solaris 9 hosts (for example) @command{cp -r}
+reads from pipes instead of replicating them.
+
 Some @command{cp} implementations (e.g., BSD/OS 4.2) do not allow
 trailing slashes at the end of nonexistent destination directories.  To
 avoid this problem, omit the trailing slashes.  For example, use
-@samp{cp -r source /tmp/newdir} rather than @samp{cp -r source
+@samp{cp -R source /tmp/newdir} rather than @samp{cp -R source
 /tmp/newdir/} if @file{/tmp/newdir} does not exist.
 
 @c This is thanks to Ian.