[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: damaged behaviour for completion of words with variables
From: |
Chet Ramey |
Subject: |
Re: damaged behaviour for completion of words with variables |
Date: |
Sat, 17 Dec 2011 14:47:00 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 |
On 12/17/11 6:52 AM, wiebittewas wrote:
> Bash Version: 4.2
> Patch Level: 10
> Release Status: release
>
> Description:
> typing 'echo $PWD/[TAB]' results in 'echo \$PWD/' instead of
> 'echo <current-path>/'
> (all without single quotes of course...)
>
> This behaviour doesn't exist at least in bash-4.1.5
>
> ( bash-4.2.10 comes here with ubuntu-11.10,
> bash-4.1.5 comes here with ubuntu-10.04 )
>
> Copying old version of bash to new system brings right
> behaviour. If you think the new behaviour is right, then
> there should be an easy way, to revert it by an option,
> because at least for me bash-4.2.10 is unusable with this
> behaviour.
This bash-4.2 change has been discussed extensively on several
occasions.
http://lists.gnu.org/archive/html/bug-bash/2011-09/msg00007.html
contains a basic summary and includes an earlier version of a patch that
adds a `direxpand' shell option to restore the 4.1 behavior. I've
attached the current version of that patch to this message.
http://lists.gnu.org/archive/html/bug-bash/2011-09/msg00015.html adds
a little more detail. The earliest discussion was in this thread:
http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00274.html .
You can download a version of bash with patches 1-20 plus the direxpand
patch applied from
http://git.savannah.gnu.org/cgit/bash.git/snapshot/bash-direxpand.tar.gz
> For questions or replies please use my eMail directly, because I'm
> currently not reading any bug-lists for bash.
You should, if only to discover what has already happened.
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/
direxpand.patch
Description: Text Data