[Bash-completion-devel] Bug#272660: bash: completion of env vars broken (leading slash is added)
David Paleino
d.paleino at gmail.com
Sat Sep 6 20:46:28 UTC 2008
Hi,
after some years, someone took a look at this bug again ;)
Well, an option would really be using $dirnames (i.e. -o dirnames) instead of
$filenames. But that has drawbacks:
$ cd $H<TAB>
$HISTCMD $HISTFILE $HISTSIZE $HOSTNAME $HUSHLOGIN
$HISTCONTROL $HISTFILESIZE $HOME $HOSTTYPE
$ cd $HOM<TAB>
$ cd $HOME
$ cd /tm<TAB>
$ cd /tmp<TAB>
$ cd /tmp
..while one would expect it to be /tmp/, so that the following <TAB> would show
subdirectories... that's what -o filenames (or $filenames, in the file) does:
adding a trailing backslash.
I'm thinking to a way of adding the / to only directories, by not using
$filenames.. someone is working behind the curtains ;)
David
--
. ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20080906/a0748705/attachment-0001.pgp
More information about the Bash-completion-devel
mailing list