From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8212 invoked from network); 2 Oct 2006 00:36:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Oct 2006 00:36:29 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 40110 invoked from network); 2 Oct 2006 00:36:22 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Oct 2006 00:36:22 -0000 Received: (qmail 25143 invoked by alias); 2 Oct 2006 00:36:20 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22805 Received: (qmail 25132 invoked from network); 2 Oct 2006 00:36:19 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 2 Oct 2006 00:36:19 -0000 Received: (qmail 39911 invoked from network); 2 Oct 2006 00:36:19 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 2 Oct 2006 00:36:18 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 1C3D470055; Sun, 1 Oct 2006 20:36:16 -0400 (EDT) Date: Sun, 1 Oct 2006 20:36:16 -0400 From: Clint Adams To: Roger Leigh , 390574@bugs.debian.org Cc: zsh-workers@sunsite.dk Subject: Re: Bug#390574: zsh: Updated completions for schroot and dchroot Message-ID: <20061002003615.GA30382@scowler.net> Mail-Followup-To: Roger Leigh , 390574@bugs.debian.org, zsh-workers@sunsite.dk References: <20061001210027.13349.94075.reportbug@hardknott.home> <20061001214953.GA25131@scowler.net> <874punel7y.fsf@hardknott.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874punel7y.fsf@hardknott.home> User-Agent: Mutt/1.5.13 (2006-08-11) > 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: }// /}//[[\]]/,}}