Finally, convert the list of completion proposals to an array and return this array as the result, as shown in Listing 6.
最后,将自动完成建议列表转换为一个数组,并将这个数组作为结果返回,如清单6所示。
Typically, shell scripts and UNIX programs return 0 on successful completion.
在通常情况下,shell脚本和UNIX程序在成功完成时返回零。
If the current line matches the resulting regex, then the function has found the correct completion (the text of which is already in completion) and can return it immediately.
如果当前的行匹配生成的正则表达式,那么该函数就找到正确的补全(它的文本已经在补全中)并且能够立即返回它。
应用推荐