FS#43069 - zsh: systemctl completion prints all units

Attached to Project: Arch Linux
Opened by Edwin Pujols (edwinpm5) - Wednesday, 10 December 2014, 17:03 GMT
Last edited by Dave Reisner (falconindy) - Thursday, 11 December 2014, 12:13 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I have compinit and "menu complete" both enabled.

If I type `systemctl status net`, then press TAB, I get a
wall of text of all available units before the completion
menu is presented.

I issue seems to be a function being redefined in the file

/usr/share/zsh/site-functions}/_systemctl

namely, `_systemctl_all_units`.

I checked the upstream file and didn't observe this.

I have attached a possible fix (renaming one of the functions).

Additional info:
* Version: 5.0.7-1
* File: /usr/share/zsh/site-functions}/_systemctl


Steps to reproduce:
1. Enable compinit and menu complete.
2. Type `systemctl status `.
3. Try completion by pressing TAB key.
This task depends upon

Closed by  Dave Reisner (falconindy)
Thursday, 11 December 2014, 12:13 GMT
Reason for closing:  Fixed
Additional comments about closing:  testing/systemd-218
Comment by Dave Reisner (falconindy) - Thursday, 11 December 2014, 01:44 GMT
This has nothing to do with the zsh package -- systemd owns this file. It's fixed just in time for the v218 release:

http://cgit.freedesktop.org/systemd/systemd/commit/?id=820aced6f6067a6b7c57b7d36e44f64378870cbf
Comment by Edwin Pujols (edwinpm5) - Thursday, 11 December 2014, 02:02 GMT
Ah, yes. I forgot to check on the systemd package. Thanks.

Loading...