wajig doesn't complete all sub-commands

Bug #756997 reported by Gaz
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zsh (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: zsh

The completion function for wajig only completes the short list of commands that are listed when you run "wajig commands". The problem is that the completion function need to run "wajig -v commands" to get the full list of sub-commands.

Instead of:

>case $state in
> cmds)
> cmds=( ${${(M)${(f)"$(wajig commands 2>/dev/null)"}:# [^-]*}/(#b) ([^ ]#) #(*)/$match[1]:$match[2]:l} )

It should be:

>case $state in
> cmds)
> cmds=( ${${(M)${(f)"$(wajig -v commands 2>/dev/null)"}:# [^-]*}/(#b) ([^ ]#) #(*)/$match[1]:$match[2]:l} )

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: zsh 4.3.10-14ubuntu1 [modified: usr/share/zsh/functions/Completion/Debian/_wajig]
ProcVersionSignature: Ubuntu 2.6.35-28.49-generic-pae 2.6.35.11
Uname: Linux 2.6.35-28-generic-pae i686
Architecture: i386
Date: Sun Apr 10 20:54:47 2011
InstallationMedia: Ubuntu 10.04.2 LTS "Lucid Lynx" - Release i386 (20110211.1)
ProcEnviron:
 SHELL=/bin/zsh
 LANG=en_US.UTF-8
 LC_CTYPE=en_US.UTF-8
SourcePackage: zsh

Revision history for this message
Gaz (errant7015) wrote :
Revision history for this message
Gaz (errant7015) wrote :

Added patch

tags: added: patch
Revision history for this message
Axel Beckert (xtaran) wrote :

wajig no more supports the option "-v" for the subcommand "commands" since release 2.3 (guessed from the changelog). Verfied with wajig 2.8 in Debian Unstable. Hence the patch (nowadays) would make situation worse:

$ wajig -v commands
usage: wajig [-h] [-V]
wajig: error: unrecognized arguments: -v

tags: removed: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zsh (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.