Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: use 'P' parameter expansion flag with array?



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