From dbdf1c271d783ce2e50653b085510d5652616855 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Tue, 3 Oct 2006 06:45:35 +0000 Subject: 2280x: handle internationalized output and choices within brackets. --- Completion/Debian/Command/_dchroot | 3 +-- Completion/Debian/Command/_dchroot-dsa | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'Completion/Debian/Command') diff --git a/Completion/Debian/Command/_dchroot b/Completion/Debian/Command/_dchroot index ba2c5b3fa..43a797d83 100644 --- a/Completion/Debian/Command/_dchroot +++ b/Completion/Debian/Command/_dchroot @@ -22,7 +22,6 @@ _arguments -S \ case "$state" in (chroot) _wanted tag expl 'chroot' \ - compadd ${(os:,:)${${${"$(dchroot -l)"#Available chroots: }/\[*\]/}//[ -]/}} + compadd ${(os:,:)${${${"$(dchroot -l )"#*: }// /}//[[\]]/,}} ;; esac diff --git a/Completion/Debian/Command/_dchroot-dsa b/Completion/Debian/Command/_dchroot-dsa index 7eeb1371d..bed4bcf19 100644 --- a/Completion/Debian/Command/_dchroot-dsa +++ b/Completion/Debian/Command/_dchroot-dsa @@ -21,7 +21,6 @@ _arguments -S \ case "$state" in (chroot) _wanted tag expl 'chroot' \ - compadd ${(os:,:)${${${"$(dchroot -l)"#Available chroots: }/\[*\]/}//[ -]/}} + compadd ${(os:,:)${${${"$(dchroot -l )"#*: }// /}//[[\]]/,}} ;; esac -- cgit 1.4.1