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

Re: non-greedy matching?



Bart wrote:
> And having this as a parameter expansion flag doesn't help when it
> comes to glob patterns, which is (I rationalize) why I never thought
> of searching for it.
> 
> Anyone for adding another extendedglob flag?  (#g)?  (Maybe another
> letter would be better, since the flag would turn -off- greediness.)

It's not currently done in the globbing code, it's done by looping in the
parameter code.  It could be tricky to add directly.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070



Messages sorted by: Reverse Date, Date, Thread, Author