Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

is a key of pointed key set ? (where is the + )



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