From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24482 invoked from network); 20 Feb 2005 04:34:29 -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 04:34:29 -0000 Received: (qmail 99634 invoked from network); 20 Feb 2005 04:34:23 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Feb 2005 04:34:23 -0000 Received: (qmail 16747 invoked by alias); 20 Feb 2005 04:34:04 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8528 Received: (qmail 16728 invoked from network); 20 Feb 2005 04:34:03 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 20 Feb 2005 04:34:03 -0000 Received: (qmail 98462 invoked from network); 20 Feb 2005 04:34:03 -0000 Received: from pop.gmx.de (HELO mail.gmx.net) (213.165.64.20) by a.mx.sunsite.dk with SMTP; 20 Feb 2005 04:33:59 -0000 Received: (qmail invoked by alias); 20 Feb 2005 04:33:59 -0000 Received: from 217-68-190-208.cable.primacom.net (EHLO localhost) (217.68.190.208) by mail.gmx.net (mp018) with SMTP; 20 Feb 2005 05:33:59 +0100 X-Authenticated: #4912580 Date: Sun, 20 Feb 2005 05:33:35 +0100 From: Matthias Berndt To: zsh-users@sunsite.dk Subject: zshexpn problem Message-ID: <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.0 required=6.0 tests=AWL,BAYES_00,UPPERCASE_25_50 autolearn=no version=3.0.2 X-Spam-Hits: -2.0 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[3]} -> 2 print ${(s/./)LVERSION[3]} -> 6 print ${(s/./)LVERSION[3]} -> 10 Something like ... print ${${(s/./)LVERSION}[1]} -> 2 print ${${(s/./)LVERSION}[1]} -> 6 print ${${(s/./)LVERSION}[1]} -> 10 ... works 'correct', but is seems not very intelligent.