Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#390574: zsh: Updated completions for schroot and dchroot



> That seems fine, except for the fact that "Available chroots" is
> translated, so everything up to and including the ':' needs removing.

Okay, committing this then

Index: _dchroot
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_dchroot,v
retrieving revision 1.2
diff -u -r1.2 _dchroot
--- _dchroot	1 Oct 2006 21:57:05 -0000	1.2
+++ _dchroot	3 Oct 2006 06:14:06 -0000
@@ -22,7 +22,6 @@
 case "$state" in
 	(chroot)
 	_wanted tag expl 'chroot' \
-	compadd ${(os:,:)${${${"$(dchroot -l)"#Available chroots: }/\[*\]/}//[  
-]/}}
+	compadd ${(os:,:)${${${"$(dchroot -l )"#*: }// /}//[[\]]/,}}
 	;;
 esac
Index: _dchroot-dsa
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_dchroot-dsa,v
retrieving revision 1.1
diff -u -r1.1 _dchroot-dsa
--- _dchroot-dsa	1 Oct 2006 21:57:05 -0000	1.1
+++ _dchroot-dsa	3 Oct 2006 06:14:06 -0000
@@ -21,7 +21,6 @@
 case "$state" in
 	(chroot)
 	_wanted tag expl 'chroot' \
-	compadd ${(os:,:)${${${"$(dchroot -l)"#Available chroots: }/\[*\]/}//[  
-]/}}
+        compadd ${(os:,:)${${${"$(dchroot -l )"#*: }// /}//[[\]]/,}}
 	;;
 esac



Messages sorted by: Reverse Date, Date, Thread, Author