From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3310 invoked from network); 11 Aug 2005 17:00:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Aug 2005 17:00:40 -0000 Received: (qmail 47656 invoked from network); 11 Aug 2005 17:00:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Aug 2005 17:00:34 -0000 Received: (qmail 21021 invoked by alias); 11 Aug 2005 17:00:26 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9296 Received: (qmail 21011 invoked from network); 11 Aug 2005 17:00:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Aug 2005 17:00:25 -0000 Received: (qmail 46644 invoked from network); 11 Aug 2005 17:00:24 -0000 Received: from p54851caf.dip0.t-ipconnect.de (HELO solfire) (84.133.28.175) by a.mx.sunsite.dk with SMTP; 11 Aug 2005 17:00:18 -0000 Received: from localhost ([127.0.0.1]) by solfire with esmtp (Exim 4.42) id 1E3GRG-00083x-An; Thu, 11 Aug 2005 19:01:58 +0200 Date: Thu, 11 Aug 2005 19:01:53 +0200 (CEST) Message-Id: <20050811.190153.41632121.Meino.Cramer@gmx.de> To: mpol@charybda.icm.edu.pl Cc: zsh-users@sunsite.dk From: Meino Christian Cramer In-Reply-To: <20050811084012.GA7429@Amber.lab.icm.edu.pl> References: <20050811.051710.59487319.Meino.Cramer@gmx.de> <20050811084012.GA7429@Amber.lab.icm.edu.pl> X-Mailer: Mew version 4.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Rcpt-To: mpol@charybda.icm.edu.pl, zsh-users@sunsite.dk X-SA-Exim-Mail-From: Meino.Cramer@gmx.de Subject: Re: "splitting prpblem" Content-Type: Text/Plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Version: 4.1+cvs (built Sat, 28 Aug 2004 13:10:40 +0200) X-SA-Exim-Scanned: Yes (on solfire) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 From: Michal Politowski Subject: Re: "splitting prpblem" Date: Thu, 11 Aug 2005 10:40:12 +0200 Hi Michael, = YES, YES, YEEEEEES!!! I *want* arrays -- right *N*O*W* ! At once ! = Where can I get them and what do they cost ? = ....and do they keep care of the environment? :) Ok...more seriously... I maked an array from my variable and TADA! it works! Great hint! Thanks a lot, Micheal! Have a nice weekend! Meino = > On Thu, 11 Aug 2005 05:17:10 +0200, Meino Christian Cramer wrote: > [...] > > Is there a way to say: "Hey zsh,...if you expand this variable, > > please let it look like single options..." ? > = > You want to use an array: > opt=3D(-t7z -m0=3Dlzma -mx=3D8 -mfb=3D64) > = > zsh doesn't split scalar parameters on expansion unless the option sh= _word_split is set. > You can also set it for the duration of a single expansion using ${=3D= opt} > but for your own new script you really _do_ want to use arrays :) > = > -- = > Micha=B3 Politowski > Talking has been known to lead to communication if practiced careless= ly.