Machine: _get_comp_words_by_ref 缺失

创建于 2017-01-26  ·  4评论  ·  资料来源: docker/machine

嗨 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_ 包提供的函数。

您的错误消息的可能原因是

  • _bash-completion_ 未安装
  • _bash-completion_ 不会从您的登录脚本中调用
  • 在 _bash-completion_ 初始化之前获取完成文件

所有4条评论

_get_comp_words_by_ref是 _bash-completion_ 包提供的函数。

您的错误消息的可能原因是

  • _bash-completion_ 未安装
  • _bash-completion_ 不会从您的登录脚本中调用
  • 在 _bash-completion_ 初始化之前获取完成文件

谢谢@albers 。 我将关闭该问题,因为我认为它与安装问题有关

source /etc/profile如果您还没有(即:使用 bash 和 alpine 时)。

source /etc/profile如果您还没有(即:使用 bash 和 alpine 时)。

这也适用于 bash 和 centos。
谢谢!

此页面是否有帮助?
0 / 5 - 0 等级