On 10/14/12 8:52 AM, William F Hammond wrote: > > Configuration Information [Automatically generated, do not change]: > Machine: i686 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' > -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' > -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/local/src/gnu/share/locale' > -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g > -O2 > uname output: Linux jeanubu 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 > 21:32:50 UTC 2012 i686 athlon i386 GNU/Linux > Machine Type: i686-pc-linux-gnu > > Bash Version: 4.2 > Patch Level: 37 > Release Status: release > > Description: > If I have ul=/usr/local in the environment, I may want to > use a reference to it together with tab completion to go to > the directory /usr/local/share/emacs/site-lisp.
If you indeed are using bash-4.2.37, you can enable variable expansion by running `shopt -s direxpand'. This will produce the behavior you want. I'm wondering if you've got programmable completion enabled, or whether you're running a different version of bash than bashbug indicates, because stock 4.2.37 doesn't quote the dollar sign. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/