Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Dynamically adding to $mailpath?
- X-seq: zsh-workers 18018
- From: Borzenkov Andrey <Andrey.Borzenkov@xxxxxxxxxxx>
- To: "'Oliver Kiddle'" <okiddle@xxxxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: RE: Dynamically adding to $mailpath?
- Date: Thu, 19 Dec 2002 15:44:24 +0300
- Importance: Normal
- In-reply-to: <4575.1040299586@xxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
>
> Andrey wrote:
> >
> > mailpath=((${$(echo ~/mail/*.spool(N))//(#m)*/$MATCH?You have new mail
> in
> > ${MATCH:r:t}}))
> >
> > should work though. Unfortunately you still need one fork (echo) unless
> I
> > miss some obvious way to treat result of nested globbing as array.
>
> My attempt at this was along the lines of:
>
> mailpath=( ~/mail/*.spool(e:'REPLY=( "${REPLY}?You have new mail in
> ${REPLY:t:r}")':) )
>
> it doesn't need a fork but there seems to be a bug somewhere because I
> get `zsh: unmatched "' errors. It's okay if I remove the :t:r modifiers
> though.
>
And leaving just one of modifiers results in zsh: unknown file attribute.
-andrey
Messages sorted by:
Reverse Date,
Date,
Thread,
Author