In a terminal with bash running (4.4.23(1)-release) I write:
and then I press tab and expect to get names proposed which begin with “.co” e.g. “.config”
But it changes to
In this state no further expansion is possible because the meaning of the variable has changed.
It expands to
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.
How can I fix this?