bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: posix-string-match does not distinguish "*" from "*?"


From: Andreas Schwab
Subject: Re: posix-string-match does not distinguish "*" from "*?"
Date: Mon, 17 Feb 2003 14:59:41 +0100
User-agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.3.50 (ia64-suse-linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]