zsh-workers
 help / color / mirror / code / Atom feed
* 'K' subscript flag with associative array?
@ 2011-03-01 16:50 Greg Klanderman
  2011-03-01 17:09 ` Mikael Magnusson
  2011-03-01 17:13 ` Benjamin R. Haskell
  0 siblings, 2 replies; 6+ messages in thread
From: Greg Klanderman @ 2011-03-01 16:50 UTC (permalink / raw)
  To: Zsh list


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-01 18:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-01 16:50 'K' subscript flag with associative array? Greg Klanderman
2011-03-01 17:09 ` Mikael Magnusson
2011-03-01 17:20   ` Benjamin R. Haskell
2011-03-01 17:28     ` Mikael Magnusson
2011-03-01 18:08   ` Greg Klanderman
2011-03-01 17:13 ` Benjamin R. Haskell

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).