bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tab completion with variable expansion broken


From: Chet Ramey
Subject: Re: tab completion with variable expansion broken
Date: Sun, 14 Oct 2012 20:17:27 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1

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    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]