Hi,
In a terminal with bash running (4.4.23(1)-release) I write:
echo $HOME/.co
and then I press tab and expect to get names proposed which begin with “.co” e.g. “.config”
But it changes to
echo \$HOME/.co
In this state no further expansion is possible because the meaning of the variable has changed.
Other example:
echo $HOME/.con<tab>
It expands to
echo \$HOME/.config/
Because obviously the “.config” can be expanded unambiguously. But no further usage of the expansion in deeper directorys is possible because the variable “$HOME” got already quoted.
Furthermore: When I try to use the tab expansion for changing directories which begin with a variable, I have no expansion at all.
cd $HOME/.conf<tab>
Makes nothing.
How can I fix this?