zsh-workers
 help / color / mirror / code / Atom feed
* use 'P' parameter expansion flag with array?
@ 2009-06-30  3:20 Greg Klanderman
  2009-06-30  8:43 ` Peter Stephenson
  0 siblings, 1 reply; 6+ messages in thread
From: Greg Klanderman @ 2009-06-30  3:20 UTC (permalink / raw)
  To: Zsh list


If the 'P' parameter expansion flag is applied to an array parameter,
should it be applied to each of the elements?  Seems like it should,
but it doesn't seem to be:


[~] greg@lwm| zsh -f
lwm% 
lwm% echo $ZSH_VERSION
4.3.10-dev-1
lwm% foo=(bar baz)
lwm% bar=10
lwm% baz=35
lwm% echo ${(P)foo}
10
lwm% echo ${(P@)foo}
10
lwm% echo ${(P)foo[@]}
10
lwm% 


thanks,
Greg


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

end of thread, other threads:[~2009-07-05 19:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-30  3:20 use 'P' parameter expansion flag with array? Greg Klanderman
2009-06-30  8:43 ` Peter Stephenson
2009-06-30 15:08   ` Greg Klanderman
2009-06-30 15:19     ` Mikael Magnusson
2009-06-30 15:51       ` Greg Klanderman
2009-07-05 19:56   ` Bart Schaefer

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).