about summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-11-25 00:47:32 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-11-25 00:47:32 +0000
commit4ad8baffe9a9644bf6073f56c90b8d3441dd3a1f (patch)
tree09c85c551809bba5f15a2dc547d123ecbe78e8aa /Doc/Zsh
parent4ecf5b41ea3cb730fb726064461e83dd19a63563 (diff)
downloadzsh-4ad8baffe9a9644bf6073f56c90b8d3441dd3a1f.tar.gz
zsh-4ad8baffe9a9644bf6073f56c90b8d3441dd3a1f.tar.xz
zsh-4ad8baffe9a9644bf6073f56c90b8d3441dd3a1f.zip
Merge of 23788: add -h option to chown symlinks rather than targets, and change default behavior to do the opposite.
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/mod_files.yo7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/Zsh/mod_files.yo b/Doc/Zsh/mod_files.yo
index db45923c7..2bc83b5db 100644
--- a/Doc/Zsh/mod_files.yo
+++ b/Doc/Zsh/mod_files.yo
@@ -6,12 +6,12 @@ The tt(zsh/files) module makes some standard commands available as builtins:
 
 startitem()
 findex(chgrp)
-item(tt(chgrp) [ tt(-Rs) ] var(group) var(filename) ...)(
+item(tt(chgrp) [ tt(-hRs) ] var(group) var(filename) ...)(
 Changes group of files specified.  This is equivalent to tt(chown) with
 a var(user-spec) argument of `tt(:)var(group)'.
 )
 findex(chown)
-item(tt(chown) [ tt(-Rs) ] var(user-spec) var(filename) ...)(
+item(tt(chown) [ tt(-hRs) ] var(user-spec) var(filename) ...)(
 Changes ownership and group of files specified.
 
 The var(user-spec) can be in four forms:
@@ -33,6 +33,9 @@ Each of var(user) and var(group) may be either a username (or group name, as
 appropriate) or a decimal user ID (group ID).  Interpretation as a name
 takes precedence, if there is an all-numeric username (or group name).
 
+If the target is a symbolic link, the tt(-h) option causes tt(chown) to set
+the ownership of the link instead of its target.
+
 The tt(-R) option causes tt(chown) to recursively descend into directories,
 changing the ownership of all files in the directory after
 changing the ownership of the directory itself.