Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
list keys in assoc array.
- X-seq: zsh-users 6622
- From: Jason Price <jprice@xxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: list keys in assoc array.
- Date: Thu, 25 Sep 2003 13:26:28 -0400
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
I've been poking through the man pages, and I can't find how to get a list
of keys from an associative array. Idealy, I'd like something like:
foreach key in array ; do
if [ array[key] = someval ] ; then
do stuff
fi
done
Am I just being blind in the manpages?
Thanks;
Jason
Messages sorted by:
Reverse Date,
Date,
Thread,
Author