On Linux, why does directory tab completion add a \ to a path starting with ~
- by crobar
On my work scientific linux 6.2 machine, I often start typing in a directory like below and use tab completion to finish it:
~/mydir
But when I hit tab, it becomes e.g.
\~/mydirectory/
With an extra forward slash at the start. Why is this, and can I prevent it? It's a pain because using cd etc. doesn't work with the extra slash, I have to start from the actual home directory which is something like
/home/username/
On these PCs.