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

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



> 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, sarge-backports], sid [unstable, unstable-sbuild], sid-block [sid-block], sid-file, sid-file-source, sid-snap, sid-snap-source, testsnap, testsnap-source
> 
> The output should be:
> experimental fake sarge stable sarge-backports sid unstable unstable-sbuild sid-block sid-file sid-file-source sid-snap sid-snap-source testsnap testsnap-source
> 
> i.e. the contents of the square brackets should not be eliminated.

How about ${(os:,:)${${${"$(cat /tmp/vakka)"#Available chroots: }// /}//[[\]]/,}}



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