Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How to create unnamed temporary arrays?

On Tue, Feb 20, 2001 at 08:02:21PM +0200,
Hannu Koivisto <azure@xxxxxx> wrote:
> Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:
> | If I got that right and you really only want those filenames one per
> 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...
> kala=(/usr/local/etc/packages/*(.:t:r))
> echo ${(F)kala}
> ...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...


 Thomas Köhler Email:   jean-luc@xxxxxxxxxxxxxxxxx     | LCARS - Linux
     <><        WWW:     http://jeanluc-picard.de      | for Computers
                IRC:             jeanluc               | on All Real
               PGP public key available from Homepage! | Starships

Attachment: pgpT2dmSvhaaO.pgp
Description: PGP signature

Messages sorted by: Reverse Date, Date, Thread, Author