From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24934 invoked from network); 21 Feb 2001 22:52:26 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Feb 2001 22:52:26 -0000 Received: (qmail 11457 invoked by alias); 21 Feb 2001 22:52:10 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3640 Received: (qmail 11446 invoked from network); 21 Feb 2001 22:52:09 -0000 Date: Wed, 21 Feb 2001 07:56:22 +0100 From: Thomas =?iso-8859-1?Q?K=F6hler?= To: zsh-users@sunsite.dk Subject: Re: How to create unnamed temporary arrays? Message-ID: <20010221075622.A1283@picard.franken.de> Mail-Followup-To: Thomas =?iso-8859-1?Q?K=F6hler?= , zsh-users@sunsite.dk References: <200102190955.KAA10015@beta.informatik.hu-berlin.de> <87snl9teqa.fsf@lynx.ionific.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: <87snl9teqa.fsf@lynx.ionific.com>; from azure@iki.fi on Tue, Feb 20, 2001 at 08:02:21PM +0200 X-Operating-System: Linux picard 2.2.17 X-Editor: VIM - Vi IMproved 6.0v ALPHA http://www.vim.org/ X-IRC: tirc; Nick: jeanluc X-URL: http://jeanluc-picard.de/ --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 20, 2001 at 08:02:21PM +0200, Hannu Koivisto wrote: >=20 > Sven Wischnowsky writes: >=20 > | If I got that right and you really only want those filenames one per >=20 > Not quite; that package listing job was just a simple example using > which I was able to demonstrate the kind of situations in which I > might want to create unnamed temporary arrays. I.e. I'd really like > to know if it is possible to rewrite this... >=20 > kala=3D(/usr/local/etc/packages/*(.:t:r)) > echo ${(F)kala} >=20 > ...so that kala variable is not defined but the ${(F)...} > construction is still used. Is it only for me that echo ${(F)$(echo /var/spool/news/de/comp/**/*(.:t:r))} seems to work? Well, the problem may be spaces in the values, but even that should be solveable... Ciao, Thomas --=20 Thomas K=F6hler Email: jean-luc@picard.franken.de | LCARS - Linux <>< WWW: http://jeanluc-picard.de | for Computers IRC: jeanluc | on All Real PGP public key available from Homepage! | Starships --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6k2aWTEYXWMJlHuYRApCLAJoCy4GpNELyfbdZCPRFP5Yy0h3/0wCglfzY LMY0pAvCuLwAxqvhbqy5xek= =0CvI -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j--