summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-01-02 13:02:48 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2015-01-02 13:03:39 -0800
commit4774ff5c33d34bb6ad21c06f3c2b54d6e700740e (patch)
tree9d403b537361457f1448be7379f4bda8a825997a
parent3d6479f6ae9305fded5e5bd08c858c16484ea620 (diff)
downloadautoconf-4774ff5c33d34bb6ad21c06f3c2b54d6e700740e.tar.gz
doc: -f is now portable for cp and ln
This follows up on a comment by Glenn Morris in: http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00011.html * doc/autoconf.texi (Limitations of Usual Tools): Remove circa-1990 advice about avoiding cp -f and ln -f. Although that advice was reasonable for the early 1990s, the -f option is portable for both cp and ln nowadays. These options were standardized in POSIX 1003.2-1992, and pre-POSIX systems such as SunOS 4 are no longer of practical concern.
-rw-r--r--doc/autoconf.texi10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 639cec27..d9e833da 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -18684,9 +18684,7 @@ avoid this problem, omit the trailing slashes. For example, use
@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.
-The ancient SunOS 4 @command{cp} does not support @option{-f}, although
-its @command{mv} does.
+The @option{-f} option is portable nowadays.
@cindex timestamp resolution
Traditionally, file timestamps had 1-second resolution, and @samp{cp
@@ -19088,9 +19086,11 @@ the workaround is to use @command{join -a1 file1 file2} instead.
@item @command{ln}
@c ---------------
@prindex @command{ln}
+The @option{-f} option is portable nowadays.
+
@cindex Symbolic links
-Don't rely on @command{ln} having a @option{-f} option. Symbolic links
-are not available on old systems; use @samp{$(LN_S)} as a portable substitute.
+Symbolic links are not available on some systems; use @samp{$(LN_S)} as
+a portable substitute.
For versions of the DJGPP before 2.04,
@command{ln} emulates symbolic links