Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
'K' subscript flag with associative array?
- X-seq: zsh-workers 28828
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: Zsh list <zsh-workers@xxxxxxx>
- Subject: 'K' subscript flag with associative array?
- Date: Tue, 1 Mar 2011 11:50:53 -0500
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Reply-to: gak@xxxxxxxxxxxxxx
Hi guys, what am I doing wrong here? Shouldn't this:
zsh% echo ${(k)functions[(K)_*]}
give all function names starting with '_'?
It gives me nothing; the 'R' subscript flag does seem
to work for matching against the bodies of functions
and returning the names of those functions.
thanks,
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author