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?
$(
? ;) – Zanna Sep 07 '16 at 20:45which apt-g
and enter it; then use the history expansionfile $(!!)
– steeldriver Sep 07 '16 at 22:59type $(which apt-g
, Tab isn't affected by this bug? – wjandrea Sep 08 '16 at 18:52