summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2020-02-15 11:16:35 +0000
committerPádraig Brady <P@draigBrady.com>2020-02-15 11:24:15 +0000
commit61c49d369369773b45beeac659fa32b6f481e8be (patch)
tree6ee6355a8f9ecba3e02d365ed5b6c80ee3841e50 /doc
parent3150f4a82ef6542c4a8f0bf413815e78766f044f (diff)
downloadcoreutils-61c49d369369773b45beeac659fa32b6f481e8be.tar.gz
doc: clarify that '%a' stat format outputs mode bits
* src/stat.c (usage): Mention permission bits rather than "access" so there is no confusion with ACLs etc. Also indicate we output the file type with '%A'. * doc/coreutils.texi (stat invocation): Likewise. Also indicate '%A' is similar to `ls -ld` output. Addresses https://bugs.gnu.org/39613
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index cb238f087..24e424c54 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -12438,8 +12438,8 @@ The valid @var{format} directives for files with @option{--format} and
@option{--printf} are:
@itemize @bullet
-@item %a - Access rights in octal (note @samp{#} and @samp{0} printf flags)
-@item %A - Access rights in human readable form
+@item %a - Permission bits in octal (note @samp{#} and @samp{0} printf flags)
+@item %A - Permission bits in symbolic form (similar to @command{ls -ld})
@item %b - Number of blocks allocated (see @samp{%B})
@item %B - The size in bytes of each block reported by @samp{%b}
@item %C - The SELinux security context of a file, if available