[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash tab variable expansion question?
From: |
Chet Ramey |
Subject: |
Re: bash tab variable expansion question? |
Date: |
Wed, 19 Oct 2011 11:20:23 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
On 10/17/11 3:07 PM, Michael Kalisz wrote:
> Hi Chet,
>
> The shopt "direxpand" feature works as advertised (Thanks!) except that I
> noticed it seems to break the name-completion of executables which are not
> in you path.
This turns out to be a problem with `./' and `../' and every other case in
which the directory expansion hook would rewrite the directory name. Only
the dot and dot-dot cases worked in bash-4.1, and I have a fix that
temporarily suppresses the `external' directory rewriting in that case. I
will have to think about the right fix for the rest of the cases.
This worked in bash-4.1 only due to a bug/oversight in the directory
rewrite function logic. It was correcting that bug that uncovered this
problem, not the other changes that went in at the same time.
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/