Si quiero obtener un breve mensaje de uso para un bash incorporado, puedo usarlo help <builtin>
en un símbolo del sistema, por ejemplo
$ help export
export: export [-fn] [name[=value] ...] or export -p
Set export attribute for shell variables.
Marks each NAME for automatic export to the environment of subsequently
executed commands. If VALUE is supplied, assign VALUE before exporting.
Options:
-f refer to shell functions
-n remove the export property from each NAME
-p display a list of all exported variables and functions
An argument of `--' disables further option processing.
Exit Status:
Returns success unless an invalid option is given or NAME is invalid.
¿Cómo puedo hacer esto en zsh? He intentado
% export --help
zsh: bad option: -e
y
% help export
zsh: command not found: help
Además, la palabra "ayuda" no está en ninguna parte man zshbuiltins
.
command-line
zsh
documentation
shell-builtin
the_velour_fog
fuente
fuente