Completion Words

$COMP_WORDS is an array, which contains the individual words of the command line. The line is split by $COMP_WORDBREAKS.

The word containing the cursor is identified by $COMP_CWORD.

This variable is only available in functions and external commands invoked by the programmable completion.

BashSupport Pro 是一个 支持 $COMP_WORDS 的 Bash 集成开发工具 – 马上试用!
© 2020–2022 Joachim Ansorg
声明
隐私政策
许可条款