Bug 1382674 - Tab completing vgcreate generates command not found error
Summary: Tab completing vgcreate generates command not found error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bash-completion
Version: 24
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-07 11:19 UTC by Sitsofe Wheeler
Modified: 2017-02-05 20:22 UTC (History)
4 users (show)

Fixed In Version: bash-completion-2.5-1.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-05 20:22:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Bash completion with debugging on (1.49 KB, text/plain)
2016-10-07 11:19 UTC, Sitsofe Wheeler
no flags Details

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.


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