I have a problem with bash
completion after a system upgrade.
$ mkdir abcde
$ cd abc[TAB]
does nothing, while in the older bash
versions it would expand to $ cd abcde
.
Some older forum on bash
suggests setting the direxpand
option, but seemingly it is missing in the bash 4.2
:
$ shopt -s direxpand
bash: shopt: direxpand: invalid shell option name
(I have upgraded from Fedora 11 to Fedora 17 with its bash-4.2.37
)
Is there a way around it?
direxpand
option yet, but alldirexpand
would do is expand a directory from a variable, e.g.dir=/usr/local
, and then you could expand$dir/somewhere/else
to/usr/local/somewhere/else
by pressing Tab. Bash should always complete directory names. Are you sure there aren't any other files/directories in your current directory starting withabc
? Have you tried pressing Tab twice?