9

I am using Bash's Tab autocompletion quite often, but when I'm inside a Bash command substitution structure like in the example below, it breaks and only returns an error.

Let's assume I want to find out the file type of the apt-get executable, the command for that could be file $(which apt-get). Now if I enter that up to the letter "g" and then press Tab, I see this:

file $(which apt-gbash: unexpected EOF while looking for matching `)'
bash: syntax error: unexpected end of file

Is there any way how I can fix this and use tab autocompletion inside Bash structures like command substitution as well?

Byte Commander
  • 110,243

0 Answers0