Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: use 'P' parameter expansion flag with array?
- X-seq: zsh-workers 27073
- From: Peter Stephenson <pws@xxxxxxx>
- To: Zsh list <zsh-workers@xxxxxxxxxx>
- Subject: Re: use 'P' parameter expansion flag with array?
- Date: Tue, 30 Jun 2009 09:43:40 +0100
- In-reply-to: <19017.33909.493608.356003@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <19017.33909.493608.356003@xxxxxxxxxxxxxxxxxx>
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@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author