zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Dynamically adding to $mailpath?
Date: Thu, 19 Dec 2002 16:10:25 +0000	[thread overview]
Message-ID: <1021219161025.ZM4820@candle.brasslantern.com> (raw)
In-Reply-To: <4575.1040299586@finches.logica.co.uk>
In-Reply-To: <6134254DE87BD411908B00A0C99B044F03A0B5B3@MOWD019A>

On Dec 19,  1:06pm, Oliver Kiddle wrote:
} Subject: Re: Dynamically adding to $mailpath?
}
} 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.

On Dec 19,  3:44pm, Borzenkov Andrey wrote:
} 
} And leaving just one of modifiers results in zsh: unknown file attribute.

It's a simple parsing issue.  The double-quotes aren't significant to the
glob parser, so the colons cause the parse tokens to be

    e
    REPLY=( "${REPLY}?You have new mail in ${REPLY
    t
    r}")

Try it this way:

mailpath=( ~/mail/*.spool(e['REPLY=( "${REPLY}?You have new mail in ${REPLY:t:r}")']) )

On Dec 19,  1:06pm, Oliver Kiddle wrote:
}
} And running this twice in 4.1.0-dev-6 (but not in 4.0.2) causes a seg fault:
}   echo *(e:'REPLY=( ${REPLY}?${REPLY} )':)
} 
} (I forgot to quote the ? when trying that)

It causes a seg fault immediately in 4.0.6, so it's something that changed
after 4.0.2.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


  reply	other threads:[~2002-12-19 16:11 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
2002-12-19 16:10     ` Bart Schaefer [this message]
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=1021219161025.ZM4820@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --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).