From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7800 invoked from network); 20 Feb 2005 05:08:18 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Feb 2005 05:08:18 -0000 Received: (qmail 8939 invoked from network); 20 Feb 2005 05:08:12 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Feb 2005 05:08:12 -0000 Received: (qmail 28379 invoked by alias); 20 Feb 2005 05:07:55 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8529 Received: (qmail 28359 invoked from network); 20 Feb 2005 05:07:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 Feb 2005 05:07:53 -0000 Received: (qmail 7812 invoked from network); 20 Feb 2005 05:07:53 -0000 Received: from pop.gmx.de (HELO mail.gmx.net) (213.165.64.20) by a.mx.sunsite.dk with SMTP; 20 Feb 2005 05:07:48 -0000 Received: (qmail invoked by alias); 20 Feb 2005 05:07:48 -0000 Received: from 217-68-190-208.cable.primacom.net (EHLO localhost) (217.68.190.208) by mail.gmx.net (mp021) with SMTP; 20 Feb 2005 06:07:48 +0100 X-Authenticated: #4912580 Date: Sun, 20 Feb 2005 06:07:16 +0100 From: Matthias Berndt To: zsh-users@sunsite.dk Subject: Re: zshexpn problem Message-ID: <20050220060716.3a77bbb0@localhost> In-Reply-To: <20050220053335.4df75e1a@localhost> References: <20050220053335.4df75e1a@localhost> X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.2 required=6.0 tests=AWL,BAYES_00,UPPERCASE_25_50 autolearn=no version=3.0.2 X-Spam-Hits: -2.2 On Sun, 20 Feb 2005 05:33:35 +0100 Matthias Berndt wrote: > Hi, > > When LVERSION=2.6.10 ... why: > > print ${(s/./)LVERSION[1]} > -> 2 > print ${(s/./)LVERSION[2]} > -> > print ${(s/./)LVERSION[3]} > -> 6 > print ${(s/./)LVERSION[4]} > -> > print ${(s/./)LVERSION[5]} > -> 1 > print ${(s/./)LVERSION[6]} > -> 0 > > ... and not ... > > print ${(s/./)LVERSION[1]} > -> 2 > print ${(s/./)LVERSION[2]} > -> 6 > print ${(s/./)LVERSION[3]} > -> 10 > > Something like ... > > print ${${(s/./)LVERSION}[1]} > -> 2 > print ${${(s/./)LVERSION}[2]} > -> 6 > print ${${(s/./)LVERSION}[3]} > -> 10 > > ... works 'correct', but is seems not very intelligent. > Sorry, shit happens' when copy 'n paste. Now the values are correct.