Si je veux obtenir un bref message d'utilisation pour une commande bash intégrée, je peux l'utiliser help <builtin>
à l'invite de commande, par exemple
$ 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.
Comment puis-je faire cela dans zsh? J'ai essayé
% export --help
zsh: bad option: -e
et
% help export
zsh: command not found: help
De plus, le mot «aide» n’est nulle part man zshbuiltins
.
command-line
zsh
documentation
shell-builtin
the_velour_fog
la source
la source