Bug 1382674

Summary: Tab completing vgcreate generates command not found error
Product: [Fedora] Fedora Reporter: Sitsofe Wheeler <sitsofe>
Component: bash-completionAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 24CC: ooprala, sheltren, vg.aetera, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: bash-completion-2.5-1.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-05 20:22:00 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:
Attachments:
Description Flags
Bash completion with debugging on none

Description Sitsofe Wheeler 2016-10-07 11:19:52 UTC
Created attachment 1208138 [details]
Bash completion with debugging on

Description of problem:
Trying to use tab completion with vgcreate generates a command not found error.

Version-Release number of selected component (if applicable):
bash-completion-2.4-1.fc24.noarch

How reproducible:
Reproducible every time.

Steps to Reproduce:
1. Type
vgcreate volumegroup <TAB>

Actual results:
# vgcreate volumegroup bash:  : command not found

Expected results:
Completions to be offered? No error message.

Additional info:
Attaching output with set -x in use.

Comment 1 Ville Skyttä 2016-10-07 11:33:35 UTC
The attachment appears to be incomplete but I managed to reproduce in a F-24 mock chroot.

Comment 2 Ville Skyttä 2016-10-07 13:33:05 UTC
Already fixed upstream: https://github.com/scop/bash-completion/commit/2ed36b808cee5416139a034477a223f4910b53d8#diff-b54ee1bd37f156b3f2d41450174ce540

(The fix is to remove the trailing space at end of the "COMPREPLY=( $(compgen -W "$( pvscan 2>/dev/null | \ " line)

Comment 3 Fedora Update System 2017-02-04 16:50:18 UTC
bash-completion-2.5-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6430f4ba0e

Comment 4 Fedora Update System 2017-02-05 02:21:24 UTC
bash-completion-2.5-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6430f4ba0e

Comment 5 Fedora Update System 2017-02-05 20:22:00 UTC
bash-completion-2.5-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.