Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
is a key of pointed key set ? (where is the + )
- X-seq: zsh-users 10940
- From: Marc Chantreux <marc.chantreux@xxxxxxxxxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: is a key of pointed key set ? (where is the + )
- Date: Mon, 6 Nov 2006 09:04:33 +0100
- Mail-followup-to: zsh-users <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi all,
See this code:
pnt=h
typeset -A h
h=( k1 value )
so :
echo ${${(P)pnt}[k1]}
prints value
but how to know if the key itself is set ? i've tried some of those
syntaxes :
not $+{${(P)pnt}[k1]}
not ${+${(P)pnt}[k1]}
but it failed. I'm sure someone can help :)
regards
--
téléphone : 03.90.24.00.19
courriel : marc.chantreux@xxxxxxxxxxxxxxxxxx
---------------------------------------
Messages sorted by:
Reverse Date,
Date,
Thread,
Author