在我的Bash脚本中,我正在读取用户使用read
输入的一些变量
read -p "Glassfish Path:" GF_DIR
现在,我想让用户在必须输入目录时自动完成,就像您在Bash shell上一样。因此,当他输入目录的前几个字母时,他可以通过按TAB键自动完成目录。这有可能吗?
发布于 2011-01-28 01:52:00
尝试:
read -e -p "Glassfish Path:" GF_DIR
-e
If the standard input is coming from a terminal, Readline is used
to obtain the line.
https://stackoverflow.com/questions/4819819
复制相似问题