Bug 1982830

Summary: bash-completion does not complete and pick files from current directory
Product: Red Hat Enterprise Linux 8 Reporter: Amogh Kulkarni <amkulkar>
Component: bash-completionAssignee: Siteshwar Vashisht <svashisht>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.5   
Target Milestone: beta   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-14 10:27:56 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 Amogh Kulkarni 2021-07-15 20:00:53 UTC
Description of problem:
Bash autocomplete does not pick files from current directory on RHEL 8.

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

Tested on RHEL 8.4 with  bash-completion-2.7-5.el8.noarch installed version

How reproducible:

i. On RHEL 7, we can run the simple test:

~~~
# touch test.out

# echo "This is test file" >> test.out

# for i in $(cat test.out [Tab auto completes and provides the file]

# for i in $(cat test.out);do echo $i;done
~~~

For RHEL 8 this is not reproducible:

~~~
# touch test.out

# echo "This is test file" >> test.out

# for i in $(cat test.out [Tab does not auto complete and does not include the file name on terminal]
~~~


Actual results:

bash-completion should include the file name present in current directory.

Expected results:

bash-completion fails to pick up the file.

Comment 3 Siteshwar Vashisht 2021-10-14 10:27:56 UTC

*** This bug has been marked as a duplicate of bug 1983092 ***