嗨 docker-machine 作者,
我正在尝试 bash 完成脚本。 添加后docker-machine.bash
docker-machine-prompt.bash
到 ~/.bashrc 和“源”它们,抛出了这个错误:
$ docker-machine -bash: _get_comp_words_by_ref: command not found
-bash: ((: i < : syntax error: operand expected (error token is " ")
-bash: _get_comp_words_by_ref: command not found
-bash: ((: i < : syntax error: operand expected (error token is " ")
我在这个存储库中搜索了_get_comp_words_by_ref,但只找到了一个用法。 它可能已被删除,我猜。 你们还有这个功能吗?
_get_comp_words_by_ref
是 _bash-completion_ 包提供的函数。
您的错误消息的可能原因是
谢谢@albers 。 我将关闭该问题,因为我认为它与安装问题有关
source /etc/profile
如果您还没有(即:使用 bash 和 alpine 时)。
source /etc/profile
如果您还没有(即:使用 bash 和 alpine 时)。
这也适用于 bash 和 centos。
谢谢!
最有用的评论
_get_comp_words_by_ref
是 _bash-completion_ 包提供的函数。您的错误消息的可能原因是