From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: Re: posix-string-match does not distinguish "*" from "*?" Date: Mon, 17 Feb 2003 14:59:41 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1045490286 9521 80.91.224.249 (17 Feb 2003 13:58:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2003 13:58:06 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18klmV-0002TK-00 for ; Mon, 17 Feb 2003 14:58:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18kloo-0007YM-00 for gnu-bug-gnu-emacs@m.gmane.org; Mon, 17 Feb 2003 09:00:26 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18kloN-0007F2-00 for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2003 08:59:59 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18kloK-000760-00 for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2003 08:59:57 -0500 Original-Received: from ns.suse.de ([213.95.15.193] helo=Cantor.suse.de) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18klo7-0006Yn-00 for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2003 08:59:44 -0500 Original-Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id 1DAB5146F0; Mon, 17 Feb 2003 14:59:43 +0100 (MET) Original-To: Matt Swift X-Yow: Now I'm being INVOLUNTARILY shuffled closer to the CLAM DIP with the BROKEN PLASTIC FORKS in it!! In-Reply-To: (Matt Swift's message of "Sun, 16 Feb 2003 00:58:33 -0500") User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.3.50 (ia64-suse-linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4476 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4476 Matt Swift 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."