Bug 1321307 - missing zsh completion for pcp
Summary: missing zsh completion for pcp
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: zsh
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: James Antill
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-25 10:48 UTC by Marko Myllynen
Modified: 2016-03-30 09:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-30 09:47:36 UTC
Type: Bug


Attachments (Terms of Use)

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...


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