Bug 1404353

Summary: Typo in /usr/share/bash-completion/completions/lvm result in completion failure for vg* and pv* commands
Product: [Fedora] Fedora Reporter: Vladislav Grigoryev <vg.aetera>
Component: bash-completionAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: ooprala, sheltren, vg.aetera, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: All   
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:04 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:

Description Vladislav Grigoryev 2016-12-13 16:15:17 UTC
Description of problem:
Typo in /usr/share/bash-completion/completions/lvm result in completion failure for vg* and pv* commands.
Redundant spaces before end of line on lines 17-18:
$ grep -n ' $' /usr/share/bash-completion/completions/lvm
17:    COMPREPLY=( $(compgen -W "$( pvscan 2>/dev/null | \ 
18:       command sed -n -e 's|^.*PV \([^ ]*\) .*|\1|p' )" -- "$cur" ) ) 

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

How reproducible:
Always.

Steps to Reproduce:
1. vgextend vg <Tab>

Actual results:
$ vgextend vg <Tab>bash:  : command not found
^C

Comment 2 Fedora Update System 2017-02-04 16:50:25 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 3 Fedora Update System 2017-02-05 02:21:27 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 4 Fedora Update System 2017-02-05 20:22:04 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.