The backslash is gone in karmic, but the behavior is not fixed. With the
karmic (and upstream debian) bash-completion package, environment
variables still do not expand.
$ cd $HOME<tab>
$HOME
As others have noted, simply removing $filenames breaks the expansion.
For me, the behavior of $dirnames in its place is at least tolerable
(you must type a slash in order to get the path to expand). I would
consider this bug still open.
Until it gets fixed properly, the workaround is easy to apply...
Workaround diff for the karmic bash_completion:
--- /etc/bash_completion 2009-06-01 06:33:54.000000000 -0400
+++ bash_completion 2009-07-20 10:52:21.000000000 -0400
@@ -3236,9 +3236,9 @@
return 0
}
if shopt -q cdable_vars; then
- complete -v -F _cd $nospace cd
+ complete -v -F _cd $nospace $dirnames cd
else
- complete -F _cd $nospace cd
+ complete -F _cd $nospace $dirnames cd
fi
# a wrapper method for the next one, when the offset is unknown
--
Bash command completion puts backslash in front of beginning dollar sign
https://bugs.launchpad.net/bugs/177243
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs