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: Clark J. Wang
Subject: Re: bash tab variable expansion question?
Date: Mon, 5 Sep 2011 09:51:47 +0800

On Sat, Sep 3, 2011 at 3:32 AM, Chet Ramey <chet.ramey@case.edu> wrote:

>
> The attached patch adds a new shell option that, when enabled, is
> intended to restore the bash-4.1 behavior of expanding directory names
> in filenames being completed.  I have done some testing, and it seems
> to work the way I intend.  This, or some later version, will be part
> of the next bash release.  I am soliciting feedback on this iteration.
>
> I'm sending this directly to everyone who's commented negatively about
> the default bash-4.2 behavior, as well as bug-bash.  Please try the new
> option (`direxpand') and let me know if it's missing anything.  The patch
> includes the original heuristic I sent out back in March, the new shopt
> option, and updates to the documentation and test suite.  It should apply
> cleanly to bash-4.2.10.
>
>
Tested with 4.2.10. Overall it works fine for me. But it still has problem
for following scenario:

$ complete -d -o bashdefault cd
$ cd $PWD<TAB>
# it expands to this:
$ cd \$PWD<SPACE>

Bash 4.1 also behaves like that so I'm not sure if it's OK.


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