zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh list <zsh-workers@sunsite.dk>
Subject: Re: use 'P' parameter expansion flag with array?
Date: Sun, 05 Jul 2009 12:56:40 -0700	[thread overview]
Message-ID: <090705125640.ZM7707@torch.brasslantern.com> (raw)
In-Reply-To: <200906300843.n5U8hecG011236@news01.csr.com>

On Jun 30,  9:43am, Peter Stephenson wrote:
}
} 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.

The (P) flag was supposed to create an approximate equivalent of ksh
"nameref" parameters.  Because of the way array expansion operates in
ksh and similar shells, extending (P) to an automatic "map" over an
array wasn't considered.


      parent reply	other threads:[~2009-07-05 19:57 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
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 [this message]

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=090705125640.ZM7707@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).