Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: ${_comps[(K)*diff*]}
- X-seq: zsh-workers 10046
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Sven Wischnowsky" <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: ${_comps[(K)*diff*]}
- Date: Fri, 10 Mar 2000 13:04:29 +0300
- Importance: Normal
- In-reply-to: <200003100954.KAA03102@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
> >
> > What you miss is that [(k)...] and [(K)...] don't do pattern-matching
> > on the keys. I have an idea what's going wrong, but I don't have time
> > to fix it right now.
>
> (I don't see anything wrong here, what am I missing?)
>
k
If used in a subscript on a parameter that is not an associative
array, this behaves like `r', but if used on an association, it
makes the keys be interpreted as patterns and returns the first
value whose key matches the EXP.
K
On an associtation this is like `k' but returns all values whose
keys match the EXP. On other types of parameters this has the same
effect as `R'.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author