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: Mon, 15 Oct 2012 19:01:55 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1

On 10/15/12 11:26 AM, William F Hammond wrote:

>> 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.
> 
> Yes 'shopt -s direxpand' works.  Thanks.
> 
> I'm working with Ubuntu 12.04(LTS) which was installed by a
> difficult upgrade from Ubuntu 10.04(LTS) about six weeks
> ago.  Ubuntu 12.04 comes with bash version 4.2.24, while
> 10.04 came with 4.1.5.  So the tab completion issue was new
> for me with bash 4.2.24.

Yes, this issue was new with bash-4.2.  Patch 29 contains several
things: the direxpand option, fixes to the treatment of relative
pathnames, and some heuristics that prevent dollar signs from
being quoted in expanded words without direxpand enabled.  The
intent of the direxpand option is to restore the bash-4.1 behavior,
with some bug fixes.

I'm not sure why Ubuntu is waiting to update bash-4.2 to at least patch
29 other than they just haven't gotten to it yet.

Chet

-- 
``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]