Bug 825751 - bash-completion fails on environment variables
Summary: bash-completion fails on environment variables
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: bash-completion
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-28 11:34 UTC by Philippe Vouters
Modified: 2012-05-29 12:45 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-05-29 12:41:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Philippe Vouters 2012-05-28 11:34:09 UTC
Description of problem:
As per Michael Schmidt request in https://bugzilla.redhat.com/show_bug.cgi?id=790768 I am entering a new bash-completion problem report. It happens that with bash if your type in $ ls $HOME/<TAB> you get $ ls \$HOME/

Version-Release number of selected component (if applicable):
bash-4.2.24-1.fc16.i686
bash-completion-1.3-6.fc16.noarch

How reproducible:
Always

Steps to Reproduce:
1. Activate a terminal running a bash shell
2. ls $HOME/<TAB>
3.
  
Actual results:
ls \$HOME/

Expected results:
ls /home/philippe/

Additional info:
For an example of environment variables auto-completion, read the following GNU readline example at:
http://vouters.dyndns.org/tima/Unix-Linux-OpenVMS-GNU_readline-readline_with_filename_completion_example.html

I do not know if this is a bug or a bash intended feature.
Yours truly,
Philippe Vouters (Fontainebleau/France)

Comment 1 Philippe Vouters 2012-05-29 09:03:12 UTC
Bash development team says that this was an intentional change with Bash 4.2.

On 5/28/2012 9:12 PM, Clark WANG wrote:
> On Mon, May 28, 2012 at 11:32 PM, John E. Malmberg
> wrote:
>> https://bugzilla.redhat.com/show_bug.cgi?id=825751
>>
>> bash-4.2.24-1.fc16.i686
>>
>> Steps to Reproduce:
>> 1. Activate a terminal running a bash shell
>> 2. ls $HOME/<TAB>
>> 3.
>>
>> Actual results:
>> ls \$HOME/
>
> Already discussed for quite a few times. For example:
>
> http://lists.gnu.org/archive/html/bug-bash/2011-12/msg00079.html
> (patched attached)
> http://lists.gnu.org/archive/html/bug-bash/2011-12/msg00035.html
>

Very annoying this is an intentional change.
Yours truly,
Philippe

Comment 2 Roman Rakus 2012-05-29 12:41:05 UTC
Hopefully they will merge direxpand branch with master branch.

Comment 3 Roman Rakus 2012-05-29 12:45:39 UTC
Anyway, this is related to bash and not bash-completion, isn't it?


Note You need to log in before you can comment on or make changes to this bug.