summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-24 23:33:13 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-24 23:33:13 +0000
commit6ca4627b99cb62bd04d6027d3a8c220712f1b971 (patch)
tree1ff8c40fa8262186a093e3417e6e89fc2eb41971 /doc
parent498719e7c6b4f76c4817314cba73fd7fd6645b18 (diff)
downloadcoreutils-6ca4627b99cb62bd04d6027d3a8c220712f1b971.tar.xz
(chmod invocation): Warn about "chmod -w file".
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 7068fc487..8db25a90f 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -8303,6 +8303,9 @@ recursive directory traversals.
If used, @var{mode} specifies the new permissions.
For details, see the section on @ref{File permissions}.
+In the extremely rare cases where @var{mode} has leading @samp{-}, a
+portable script should use @option{--} first, e.g., @samp{chmod -- -w
+file}. Typically, though, @samp{chmod a-w file} is preferable.
The program accepts the following options. Also see @ref{Common options}.