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:
Clint Adams [EMAIL PROTECTED] writes:
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
- compadd ${(os:,:)${${${$(dchroot -l)#Available chroots: }/\[*\]/}//[
-]/}}
+
Clint Adams [EMAIL PROTECTED] writes:
That's not quite right:
% echo ${(os:,:)${${${$(dchroot -l)#Available chroots:}/\[*\]/}//[
]/}}
experimental fake sarge sid-file sid-file-source sid-snap
sid-snap-source testsnap testsnap-source
hardknott% dchroot -l
Available chroots:
Package: zsh
Version: 4.3.2-17
Severity: wishlist
Tags: patch
Hi,
Attached is a patch to update the completions for schroot and dchroot, and also
to add completions for dchroot-dsa.
Since I'm new to zsh, some parts of the patch might be suboptimal. Feel free to
alter it. The bit I'm not sure
Hi,
Attached is a patch to update the completions for schroot and dchroot, and
also
to add completions for dchroot-dsa.
Since I'm new to zsh, some parts of the patch might be suboptimal. Feel free
to
alter it. The bit I'm not sure about is:
- compadd ${${$(dchroot
Clint Adams [EMAIL PROTECTED] writes:
Since I'm new to zsh, some parts of the patch might be suboptimal. Feel
free to
alter it. The bit I'm not sure about is:
- compadd ${${$(dchroot -l)[3,-1]%,}:#\[*\]} ret=0
+ compadd $(echo ${$(dchroot -l)[3,-1]%,} | sed -e 's/\[//g' -e 's/\]//g'
That's not quite right:
% echo ${(os:,:)${${${$(dchroot -l)#Available chroots:}/\[*\]/}//[
]/}}
experimental fake sarge sid-file sid-file-source sid-snap
sid-snap-source testsnap testsnap-source
hardknott% dchroot -l
Available chroots: experimental, fake, sarge [stable,
7 matches
Mail list logo