来自help compgen
:
$ help compgen
compgen: compgen [-abcdefgjksuv] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [word]
Display possible completions depending on the options.
Intended to be used from within a shell function generating possible
completions. If the optional WORD argument is supplied, matches against
WORD are generated.
Exit Status:
Returns success unless an invalid option is supplied or an error occurs.
那么,期权[-abcdefgjksuv]
代表什么呢?
换句话说,我想知道如何使用所有选项。
“ man compgen”不存在。使用“ man bash”
—
kevinf
man compgen
。手册页是针对shell内置程序的,因此您必须向下滚动到compgen
。