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

Re: Parameter expansion flag (%) priority.



Frank Terbeck wrote:
> > That's actually easy:  ${(L):-${(%):-%n}} (or %m if that's what you
> > meant).  This is fully guaranteed against programmers' whims.
> 
> Shouldn't ${(L)${(%):-%m} (yes, you're right, I meant '%m') be enough?

Yes, you're right.

-- 
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