如果我想获得内置bash的简短用法消息,可以help <builtin>
在命令提示符下使用,例如
$ 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.
如何在zsh中执行此操作?我试过了
% export --help
zsh: bad option: -e
和
% help export
zsh: command not found: help
此外,“帮助”一词也不在中man zshbuiltins
。