RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1504523 - Append '/' while tab completing directory names with bash-completion
Summary: Append '/' while tab completing directory names with bash-completion
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: bash-completion
Version: 7.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Siteshwar Vashisht
QA Contact:
URL:
Whiteboard:
Depends On: 1505938
Blocks: 1722727
TreeView+ depends on / blocked
 
Reported: 2017-10-20 06:06 UTC by ddu
Modified: 2023-09-07 18:58 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1505938 1722727 (view as bug list)
Environment:
Last Closed: 2020-02-05 13:30:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1495398 0 medium CLOSED Append '/' while tab completing directory names 2021-02-22 00:41:40 UTC

Description ddu 2017-10-20 06:06:04 UTC
Description of problem:

In bash-4.3, when use tab to auto complete the variable, if the variable is
a directory, it will attend a "/" after the variable.

# ls $HOM    -> click TAB
# ls $HOME/

RHEL provides bash-4.2 in RHEL7, it will attend a space after the variable.

# ls $HOM    -> click TAB
# ls $HOME<space>

In #1495398 a test patch has been created which can achieve this function in bash-4.2

But when bash-completion is installed, it will change the behavior.

Version-Release number of selected component (if applicable):

bash-completion-2.1-6.el7

How reproducible:

everytime

Steps to Reproduce:

# ls $HOM    -> click TAB
# ls $HOME<space>

Actual results:

# ls $HOME<space>

Expected results:

# ls $HOME/

Additional info:

"shopt -u progcomp" will do the job but it will disable auto-completion well.

Comment 2 Siteshwar Vashisht 2017-10-24 14:17:22 UTC
It is still not supported by upstream, so it needs to be implemented in upstream first before it is backported to RHEL.

Comment 3 Siteshwar Vashisht 2018-01-04 10:14:11 UTC
Upstream issue: https://github.com/scop/bash-completion/issues/171

Comment 5 kyoneyama 2019-06-06 07:36:36 UTC
Hello, 

How is the progress on this ?


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