all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: posix-string-match does not distinguish "*" from "*?"
Date: Mon, 17 Feb 2003 14:59:41 +0100	[thread overview]
Message-ID: <jeel67ros2.fsf@sykes.suse.de> (raw)
In-Reply-To: <m2fzqo937a.fsf@beth.swift.xxx> (Matt Swift's message of "Sun, 16 Feb 2003 00:58:33 -0500")

Matt Swift <swift@alum.mit.edu> writes:

|> `posix-string-match' (and I presume the other `posix-*' searching
|> functions) do not seem to distinguish between the "*" and "*?"
|> operators.  No mention is made of this difference from `string-match'
|> in the Elisp manual, which describes the posix- functions as having
|> super-greedy repetition constructs and handling of "|", but a reader
|> would not guess that these functions differ with respect to the
|> explicitly non-greedy operators "*?", "+?"  and "??".  Since I do not
|> have access to the POSIX specs, someone else will have to discern
|> whether this is a dox bug or a bug in `posix-string-match'.

POSIX does not define any of these non-greedy operators:

  The behavior of multiple adjacent duplication symbols ('+', '*', '?',
  and intervals) produces undefined results.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

      reply	other threads:[~2003-02-17 13:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-16  5:58 posix-string-match does not distinguish "*" from "*?" Matt Swift
2003-02-17 13:59 ` Andreas Schwab [this message]

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=jeel67ros2.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=bug-gnu-emacs@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.