【发布时间】:2009-07-24 12:02:09
【问题描述】:
我正在使用Term::Shell 包来实现一个 CLI 工具。这个包提供了一个API:comp_CMD。
只要用户按下 TAB,就会调用此函数。 我的要求是:
shell> stackTAB
over under
`shell>堆叠在TAB
flow sample junk
但默认的comp_CMD 只提供一组TAB 选项,如
shell> stackTAB
over under
`shell>堆叠在TAB
over under ### 问题就在这里
这里不是over under,而是flow sample junk。
【问题讨论】:
-
好吧,既然我已经看过 Term::Shell,我注意到你需要写
sub comp_stack。我错了吗?你的comp_stack里有什么?
标签: perl tab-completion