Bug 1321307

Summary: missing zsh completion for pcp
Product: [Fedora] Fedora Reporter: Marko Myllynen <myllynen>
Component: zshAssignee: James Antill <james.antill>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: dmaphy, james.antill, j, kdudka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-30 09:47:36 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 Marko Myllynen 2016-03-25 10:48:05 UTC
Description of problem:
Under bash the following produces "pminfo mem.util.free" as expected:

$ pminfo me<TAB>u<TAB>f<TAB>

However, if trying to use bashcompinit with zsh, PCP completion doesn't work:

autoload -U bashcompinit
bashcompinit
. /etc/bash_completion.d/pcp

It is unclear to me whether this is a generic issue with bashcompinit or something specific to /etc/bash_completion.d/pcp.

Version-Release number of selected component (if applicable):
zsh-5.1.1-4.fc23.x86_64

Comment 1 Kamil Dudka 2016-03-29 08:46:34 UTC
The bashcompinit module was introduced in 2003:

    http://www.zsh.org/mla/workers/2003/msg00046.html

... and there have been 5 commits since then.  It does not seem to be actively maintained.  I believe the best way to address this is to write a completion for zsh and post it to the upstream mailing list for inclusion.

Comment 2 Marko Myllynen 2016-03-30 04:55:03 UTC
Thanks for the background info. Yes, indeed seems like bashcompinit is not going to work so I'm ok closing this bug if you like.

Thanks.

Comment 3 Kamil Dudka 2016-03-30 08:15:18 UTC
This is really a matter of contributing the zsh completion script.  Looking at /etc/bash_completion.d/pcp it does not seem to be overly complicated.  Still it would be better if the completion script was written by someone who actively uses pcp.

Comment 4 Marko Myllynen 2016-03-30 08:43:42 UTC
Here I was mostly interested to know what bashcompinit is expected to work or not. I will try to create PCP completion for zsh at some point but that's an upstream matter, I think we could close this BZ if nothing will be done for bashcompinit.

Thanks.

Comment 5 Kamil Dudka 2016-03-30 09:47:36 UTC
Thanks for clarification!  Closing...