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

Re: New Modifiers



On 5/28/07, fREW <frioux@xxxxxxxxx> wrote:
Is there a way to define new modifiers or does that require changing
the source code?

Modifiers of what kind?  Command modifiers?  Glob modifiers?

Glob modifiers (two examples from the manual):

*(e:'reply=(${REPLY}{1,2})':)

nt() { [[ $REPLY -nt $NTREF ]] }
NTREF=reffile
ls -l *(+nt)

 nikolai



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