Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

_get_comp_words_by_ref missing #3968

Closed
diver-sity opened this issue Jan 26, 2017 · 4 comments
Closed

_get_comp_words_by_ref missing #3968

diver-sity opened this issue Jan 26, 2017 · 4 comments

Comments

@diver-sity
Copy link

Hi docker-machine authors,
I was trying out the bash completion scripts. After adding
docker-machine.bash
docker-machine-prompt.bash
to ~/.bashrc and "source" them, this error was thrown:

$ 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 " ")

I searched for _get_comp_words_by_ref in this repository, but only a usage was found. It might have been removed, I guess. Do you guys still have that function by any chance?

@albers
Copy link
Contributor

albers commented Feb 21, 2017

_get_comp_words_by_ref is a function provided by the bash-completion package.

Possible causes for your error message would be

  • bash-completion is not installed
  • bash-completion is not invoked from your login scripts
  • you source the completion files before bash-completion is initialized

@nathanleclaire
Copy link
Contributor

Thanks @albers . I'm going to close the issue as I think it's related to installation issues

@mateothegreat
Copy link

source /etc/profile if you aren't already (i.e.: when using bash with alpine).

@pradhyu
Copy link

pradhyu commented Apr 11, 2019

source /etc/profile if you aren't already (i.e.: when using bash with alpine).

This worked for bash with centos too.
thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants