Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: New Modifiers
- X-seq: zsh-users 11521
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: fREW <frioux@xxxxxxxxx>
- Subject: Re: New Modifiers
- Date: Mon, 28 May 2007 09:35:03 +0200
- Cc: "Zsh users list" <zsh-users@xxxxxxxxxx>
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=pJl4HTjI9xaARL8Id1xu7UcS82oOUdOcsrDZ+c7vS+eGr7pSpoTe1KubR2PqYplN5Z9N3m9dh+eG+TEQ7DihcET/SKgu7HvyrM5NpI58x03RFU3Vx/b5RXljZNpT4DRjz59f6qWOHpu7DpOGaqclCXs3/llL2OysyWSlps4pges=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=dLD/ZkJD0o/eHIsGbRZaXscMiSWXQtxmVlipYO0/wTYzHhCEcTqD9K9arDVKM7toJTtmAFH0e3HqeERSlnndFNEKiM/2Hh/Ge99ac1SggIT6a3146SSVvDA0m0l+nGT3TW0HVBhPnjDUkJT2V4ehtigD4QnjiQ4kEg6wtywOYSc=
- In-reply-to: <fb3648c60705272015g3f25d08vf84171045aad42b0@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <fb3648c60705272015g3f25d08vf84171045aad42b0@xxxxxxxxxxxxxx>
- Sender: nikolai.weibull@xxxxxxxxx
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