From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2460 invoked from network); 11 Aug 2005 03:15:53 -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 03:15:53 -0000 Received: (qmail 6177 invoked from network); 11 Aug 2005 03:15:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Aug 2005 03:15:47 -0000 Received: (qmail 4624 invoked by alias); 11 Aug 2005 03:15:38 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9288 Received: (qmail 4614 invoked from network); 11 Aug 2005 03:15:36 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Aug 2005 03:15:36 -0000 Received: (qmail 5067 invoked from network); 11 Aug 2005 03:15:36 -0000 Received: from p54852302.dip0.t-ipconnect.de (HELO solfire) (84.133.35.2) by a.mx.sunsite.dk with SMTP; 11 Aug 2005 03:15:32 -0000 Received: from localhost ([127.0.0.1]) by solfire with esmtp (Exim 4.42) id 1E33Z9-0006CD-5O for zsh-users@sunsite.dk; Thu, 11 Aug 2005 05:17:11 +0200 Date: Thu, 11 Aug 2005 05:17:10 +0200 (CEST) Message-Id: <20050811.051710.59487319.Meino.Cramer@gmx.de> To: zsh-users@sunsite.dk From: Meino Christian Cramer In-Reply-To: <237967ef050810155178939027@mail.gmail.com> 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: zsh-users@sunsite.dk X-SA-Exim-Mail-From: Meino.Cramer@gmx.de Subject: "splitting prpblem" Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 HI, I have a kind of "splitting problem" -- and dont know how to categorize or name it... This is it: I made a script to repack all my *.tar.bz2 files into *.7z file with the high compression packer p7zip. P7zip supports a couple of optimizing options to get most of it in dependance of the used machine (mem etc...). To not to repeat these options every time on a line where p7zip is called I put them into a variable: opt="-t7z -m0=lzma -mx=8 -mfb=64" Now... When calling p7zip with 7z a $opt p7zip gets confused, because it sees the parameters in $opt as one monlithic block of text. Is there a way to say: "Hey zsh,...if you expand this variable, please let it look like single options..." ? I dont want to call big brothers of big sisters of the utils family like sed, ed, cut, grep or whatever for this tiny job... (...and for what keyword I had to search for in th ezshall docs...I tried things like "$1", "variable expansion", "split" and such and found nothing appropiate...) Keep zshing! Meino