zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.auc.dk
Subject: Re: <n> == <n->?
Date: Tue, 04 Apr 2000 20:32:18 +0100	[thread overview]
Message-ID: <E12cZ3g-0006EH-00.2000-04-04-20-32-16@mail11.svr.pol.co.uk> (raw)
In-Reply-To: "Johan Sundstr m"'s message of "Tue, 04 Apr 2000 19:00:42 +0200." <Pine.GSO.4.02.10004041813220.28633-100000@astmatix.ida.liu.se>

Johan Sundstr m wrote:
> Another thing I forgot at first when on the subject: for quite some time
> now, <x-y> has been ungreedy about its matches, to my disappointment. This
> means that <1-2>* will match 1, 2, 10 through 29, and so on, instead of a
> single, closed range, as at leas I would hope when constructing such a
> pattern.

I thought about this when I changed it, and came to the conclusion that the
new behaviour was a simple matter of consistency with patterns.  *
guarantees to match anything at all, so 123potato is bound to match <1-2>*.
I don't think it's an option to make * not match numbers in this one case.
You probably don't need to be told all the workarounds; I suppose the
simplest is <1-2>[^0-9]*.

-- 
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@CambridgeSiliconRadio.com
Web: http://www.pwstephenson.fsnet.co.uk


  reply	other threads:[~2000-04-04 19:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-03 23:09 Johan Sundström
2000-04-04  1:16 ` Zefram
2000-04-04 17:00   ` Johan Sundström
2000-04-04 19:32     ` Peter Stephenson [this message]
2000-04-04 21:01     ` Zefram

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=E12cZ3g-0006EH-00.2000-04-04-20-32-16@mail11.svr.pol.co.uk \
    --to=pws@pwstephenson.fsnet.co.uk \
    --cc=zsh-workers@sunsite.auc.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).