zsh-workers
 help / color / mirror / code / Atom feed
From: Greg Klanderman <gak@klanderman.net>
To: Zsh list <zsh-workers@sunsite.dk>
Subject: use 'P' parameter expansion flag with array?
Date: Mon, 29 Jun 2009 23:20:21 -0400	[thread overview]
Message-ID: <19017.33909.493608.356003@gargle.gargle.HOWL> (raw)


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


             reply	other threads:[~2009-06-30  3:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-30  3:20 Greg Klanderman [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19017.33909.493608.356003@gargle.gargle.HOWL \
    --to=gak@klanderman.net \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).