Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#390574: zsh: Updated completions for schroot and dchroot
- X-seq: zsh-workers 22808
- From: Clint Adams <clint@xxxxxxx>
- To: Roger Leigh <rleigh@xxxxxxxxxxxxxxxxxxxx>, 390574@xxxxxxxxxxxxxxx
- Subject: Re: Bug#390574: zsh: Updated completions for schroot and dchroot
- Date: Tue, 3 Oct 2006 02:14:59 -0400
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <87sli6nyjc.fsf@xxxxxxxxxxxxxx>
- Mail-followup-to: Roger Leigh <rleigh@xxxxxxxxxxxxxxxxxxxx>, 390574@xxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20061001210027.13349.94075.reportbug@xxxxxxxxxxxxxx> <20061001214953.GA25131@xxxxxxxxxxx> <874punel7y.fsf@xxxxxxxxxxxxxx> <20061002003615.GA30382@xxxxxxxxxxx> <87sli6nyjc.fsf@xxxxxxxxxxxxxx>
> 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