bug-bash
[Top][All Lists]
Advanced

[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: Mon, 17 Oct 2011 21:10:49 -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.

Yes, it expands the directory name.  In this case, it expands `.' to $PWD,
and the differing prefixes make the names not match.  I'll have to see
what I can do about that.  It might be a nasty fix, since the same function
has to make sure that `.' does expand to $PWD to honor the shell's logical
view of the file system.  I'm not sure what negative consequences dropping
that rewrite might bring.

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]