From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19214 invoked from network); 11 Aug 2005 08:40:32 -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 08:40:32 -0000 Received: (qmail 7712 invoked from network); 11 Aug 2005 08:40:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Aug 2005 08:40:24 -0000 Received: (qmail 22271 invoked by alias); 11 Aug 2005 08:40:17 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9290 Received: (qmail 22262 invoked from network); 11 Aug 2005 08:40:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Aug 2005 08:40:17 -0000 Received: (qmail 6689 invoked from network); 11 Aug 2005 08:40:17 -0000 Received: from 64-mi2-2.acn.waw.pl (HELO mp.pl.eu.org) (82.210.189.64) by a.mx.sunsite.dk with SMTP; 11 Aug 2005 08:40:13 -0000 Received: from mike by mp.pl.eu.org with local (Exim 3.36 #1 (Debian)) id 1E38bk-000202-00 for ; Thu, 11 Aug 2005 10:40:12 +0200 Date: Thu, 11 Aug 2005 10:40:12 +0200 From: Michal Politowski To: zsh-users@sunsite.dk Subject: Re: "splitting prpblem" Message-ID: <20050811084012.GA7429@Amber.lab.icm.edu.pl> Mail-Followup-To: zsh-users@sunsite.dk References: <20050811.051710.59487319.Meino.Cramer@gmx.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: <20050811.051710.59487319.Meino.Cramer@gmx.de> X-PGP: 1024D/6B757C5B; 1C98 622F 6A6D 822D 3E95 2626 14EB 98C1 6B75 7C5B; 2004-02-29 -- 2006-02-28 User-Agent: Mutt/1.5.9i 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.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 ${=3Dopt} but for your own new script you really _do_ want to use arrays :) --=20 Micha=B3 Politowski Talking has been known to lead to communication if practiced carelessly. --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC+w7sFOuYwWt1fFsRAo38AJ9GQ0dDsrdE0MWvUD3MgxUCfwgwMACfdA9j 6cIAwycc6iDpWslg1spth0k= =vGXq -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--