Description of problem: This bug is just a copy of a message in the upstream mailing list: see http://lists.gnu.org/archive/html/bug-bash/2008-07/msg00008.html After triggering directory tab-completion as part of the command in a command-substitution ( `` or "$()" but not $() ), bash enters a state where tab-completion appends a / to all matched filenames, not just directories. Version-Release number of selected component (if applicable): bash-3.2-24 How reproducible: always Steps to Reproduce: 1. complete -r 2. cd /tmp; touch example 3. ls examp<TAB> 4. `/tm<TAB> 5. ls examp<TAB> Actual results: example/ Expected results: example Additional info: The referenced message contains a simple patch which fixes the problem.
Created attachment 407765 [details] The patch posted by Loren Merritt to the upstream mailing list
Yup, yup. This auto-completion problem does not occur on RH4 (bash-3.0-21.el4_8.2) only in latest RH5 bash (bash-3.2-24.el5)
We are seeing the same thing here with RHEL 5.4 (bash-3.2-24.el5) Is there any chance this will be put into an update for 5.4?
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
Fixed in bash-3.2-28.el5
Fix verified on bash-3.2-29.el5 on all architectures.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: In certain circumstances bash incorrectly appended "/" to files that are not directories when attempting tab-completion. This is fixed to remove the automatic appending of "/" after files that are not directories to allow the auto complete function to function as expected.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -In certain circumstances bash incorrectly appended "/" to files that are not directories when attempting tab-completion. This is fixed to remove the automatic appending of "/" after files that are not directories to allow the auto complete function to function as expected.+In certain circumstances bash incorrectly appended "/" to files that are not directories when attempting tab-completion, resulting in incorrect auto-completion options. This is fixed to remove the automatic appending of "/" after files that are not directories to allow the auto complete function to function as expected.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. Diffed Contents: @@ -1 +1 @@ -In certain circumstances bash incorrectly appended "/" to files that are not directories when attempting tab-completion, resulting in incorrect auto-completion options. This is fixed to remove the automatic appending of "/" after files that are not directories to allow the auto complete function to function as expected.+In some situations, bash incorrectly appended "/" to files instead of just directories during tab-completion, causing incorrect auto-completions. This is fixed and auto-complete appends "/" only to directories.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2011-1073.html