Bash auto-completion of variables adds additional white space at the end

Solution 1:

Better late answer than never!

The convenient completion directory names in variables was implemented in Bash 4.3. The Bash 4.3 checks whether a shell variable expands to a directory name and appends / to the word as appropriate.