summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-05-04 17:24:49 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-05-04 17:24:49 +0000
commit441a46319c9165f1ef51d60eae5f5b783d5cc900 (patch)
treea2e575e68df483b604ef044ade5f0642550f0ffa /doc
parent918d8e5f31de137c381d1e2c572ba6644fc4107c (diff)
downloadcoreutils-441a46319c9165f1ef51d60eae5f5b783d5cc900.tar.xz
(chmod invocation): chmod -w complains if its
behavior differs from what chmod a-w would do.
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index e968afa39..e24c11a77 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -8451,9 +8451,11 @@ 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.
+If you really want @var{mode} to have a leading @samp{-}, you should
+use @option{--} first, e.g., @samp{chmod -- -w file}. Typically,
+though, @samp{chmod a-w file} is preferable, and @command{chmod -w
+file} (without the @option{--}) complains if it behaves differently
+from what @samp{chmod a-w file} would do.
The program accepts the following options. Also see @ref{Common options}.