Bug 825751

Summary: bash-completion fails on environment variables
Product: [Fedora] Fedora Reporter: Philippe Vouters <Philippe.Vouters>
Component: bash-completionAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: rrakus, sheltren, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-29 12:41:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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?