(zsh.info.gz) The zsh/attr Module
Info Catalog
(zsh.info.gz) Zsh Modules
(zsh.info.gz) The zsh/cap Module
22.2 The zsh/attr Module
========================
The zsh/attr module is used for manipulating extended attributes. The
-h option causes all commands to operate on symbolic links instead of
their targets. The builtins in this module are:
zgetattr [ -h ] FILENAME ATTRIBUTE [ PARAMETER ]
Get the extended attribute ATTRIBUTE from the specified FILENAME.
If the optional argument PARAMETER is given, the attribute is set
on that parameter instead of being printed to stdout.
zsetattr [ -h ] FILENAME ATTRIBUTE VALUE
Set the extended attribute ATTRIBUTE on the specified FILENAME to
VALUE.
zdelattr [ -h ] FILENAME ATTRIBUTE
Remove the extended attribute ATTRIBUTE from the specified
FILENAME.
zlistattr [ -h ] FILENAME [ PARAMETER ]
List the extended attributes currently set on the specified
FILENAME. If the optional argument PARAMETER is given, the list of
attributes is set on that parameter instead of being printed to
stdout.
zgetattr and zlistattr allocate memory dynamically. If the attribute or
list of attributes grows between the allocation and the call to get
them, they return 2. On all other errors, 1 is returned. This allows
the calling function to check for this case and retry.
Info Catalog
(zsh.info.gz) Zsh Modules
(zsh.info.gz) The zsh/cap Module
automatically generated by
info2html