> 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: }// 
/}//[[\]]/,}}


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to