Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to create unnamed temporary arrays?
- X-seq: zsh-users 3637
- From: Hannu Koivisto <azure@xxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: How to create unnamed temporary arrays?
- Date: 20 Feb 2001 20:02:21 +0200
- In-reply-to: <200102190955.KAA10015@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> (Sven Wischnowsky's message of "Mon, 19 Feb 2001 10:55:51 +0100 (MET)")
- Mail-copies-to: nobody
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200102190955.KAA10015@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: Hannu Koivisto <Hannu.Koivisto@xxxxxxxxxxx>
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.
| print -l /usr/local/etc/packages/*(.:t:r)
Thanks for the tip, though.
Please notice the notice in my signature and the Mail-copies-to
header.
--
Hannu
Please don't send copies of list mail
Messages sorted by:
Reverse Date,
Date,
Thread,
Author