zsh-workers
 help / color / mirror / code / Atom feed
From: Borzenkov Andrey <Andrey.Borzenkov@siemens.com>
To: "'Oliver Kiddle'" <okiddle@yahoo.co.uk>, zsh-workers@sunsite.dk
Subject: RE: Dynamically adding to $mailpath?
Date: Thu, 19 Dec 2002 15:44:24 +0300	[thread overview]
Message-ID: <6134254DE87BD411908B00A0C99B044F03A0B5B3@MOWD019A> (raw)
In-Reply-To: <4575.1040299586@finches.logica.co.uk>


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


  reply	other threads:[~2002-12-19 12:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6134254DE87BD411908B00A0C99B044F03A0B5AC@MOWD019A>
2002-12-19 12:06 ` Oliver Kiddle
2002-12-19 12:44   ` Borzenkov Andrey [this message]
2002-12-19 16:10     ` Bart Schaefer
2002-12-19 17:04       ` Oliver Kiddle
2003-02-19 18:18         ` PATCH: fix problem with globs inside (e) glob qualifier Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6134254DE87BD411908B00A0C99B044F03A0B5B3@MOWD019A \
    --to=andrey.borzenkov@siemens.com \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).