From 5f3e47ca5e8b98480d73b99a51606dda8be9cb32 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Sun, 27 Dec 2015 15:49:29 +0100 Subject: 37438: C/D/C/_aptitude: Also parse -h output of aptitude 0.7.5 and later --- Completion/Debian/Command/_aptitude | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Debian/Command') diff --git a/Completion/Debian/Command/_aptitude b/Completion/Debian/Command/_aptitude index 2cb211149..b2b54599f 100644 --- a/Completion/Debian/Command/_aptitude +++ b/Completion/Debian/Command/_aptitude @@ -80,7 +80,7 @@ _arguments -C \ case $state in cmds) - cmds=( ${${(M)${(f)"$(LC_ALL=C _call_program commands aptitude -h 2>/dev/null)"}:#* - *}/(#b) (*[^ ]) #- (*)/$match[1]:$match[2]:l}) + cmds=( ${${(M)${(f)"$(LC_ALL=C _call_program commands aptitude -h 2>/dev/null)"}:# [^- ][^ ]## *}/(#b) ([^ ]##) ##(- )#([^- ]*)/$match[1]:$match[3]:l}) _describe -t commands 'aptitude command' cmds && ret=0 ;; -- cgit 1.4.1