zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: Zsh list <zsh-workers@sunsite.dk>
Subject: Re: use 'P' parameter expansion flag with array?
Date: Tue, 30 Jun 2009 09:43:40 +0100	[thread overview]
Message-ID: <200906300843.n5U8hecG011236@news01.csr.com> (raw)
In-Reply-To: <19017.33909.493608.356003@gargle.gargle.HOWL>

Greg Klanderman wrote:
> If the 'P' parameter expansion flag is applied to an array parameter,
> should it be applied to each of the elements?

It does seem logical, but the code is obscure and it's not clear whether
this was intended or not---it probably fell through the cracks.  I don't
think the flag was completely thought through in other ways I've noticed
in the past, though I've forgotten what they are for the time being.
paramsubst() is full of my "one day someone should spend a year tidying
this up" comments.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


  reply	other threads:[~2009-06-30  8:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-30  3:20 Greg Klanderman
2009-06-30  8:43 ` Peter Stephenson [this message]
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=200906300843.n5U8hecG011236@news01.csr.com \
    --to=pws@csr.com \
    --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).