From 73c280a8255d38b5bd4f8819b91c19730fefed25 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sat, 22 Jan 2011 13:46:06 +0100 Subject: [PATCH] docs: do not use AIX 5.3 cp -R. * doc/autoconf.texi (Limitations of Usual Tools): Document one instance of the cp -R bug on AIX 5.3. This seems to have been fixed in 6.1 and newer releases. Signed-off-by: Ralf Wildenhues --- ChangeLog | 5 +++++ doc/autoconf.texi | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8b7052aa..c4c2bc1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-01-22 Ralf Wildenhues + docs: do not use AIX 5.3 cp -R. + * doc/autoconf.texi (Limitations of Usual Tools): Document one + instance of the cp -R bug on AIX 5.3. This seems to have been + fixed in 6.1 and newer releases. + docs: update entry about unset. * doc/autoconf.texi (Limitations of Builtins): NetBSD sh unset also fails upon `unset' of a variable that is not set. Bash 2.01 diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 7eccba7e..b1496c6d 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -18067,7 +18067,16 @@ Avoid the @option{-r} option, since Posix 1003.1-2004 marks it as obsolescent and its behavior on special files is implementation-defined. Use @option{-R} instead. On GNU hosts the two options are equivalent, but on Solaris hosts (for example) @code{cp -r} -reads from pipes instead of replicating them. +reads from pipes instead of replicating them. AIX 5.3 @code{cp -R} may +corrupt its own memory with some directory hierarchies and error out or +dump core: + +@example +@kbd{mkdir -p 12345678/12345678/12345678/12345678} +@kbd{touch 12345678/12345678/x} +@kbd{cp -R 12345678 t} +cp: 0653-440 12345678/12345678/: name too long. +@end example Some @command{cp} implementations (e.g., BSD/OS 4.2) do not allow trailing slashes at the end of nonexistent destination directories. To -- 2.47.2