From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_V=F6gele?= Newsgroups: gmane.lisp.guile.bugs Subject: Re: empty regular expressions don't work on the BSDs Date: Sun, 30 May 2004 10:07:05 +0200 Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Message-ID: <5710518A-B210-11D8-B494-000D93673682@gmx.net> References: <97ADAE0A-B0E5-11D8-ACD3-000D93673682@gmx.net> <87pt8mlw06.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1085904472 5481 80.91.224.253 (30 May 2004 08:07:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 May 2004 08:07:52 +0000 (UTC) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun May 30 10:07:46 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BULM9-0007RE-00 for ; Sun, 30 May 2004 10:07:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BULMG-0007qE-HE for guile-bugs@m.gmane.org; Sun, 30 May 2004 04:07:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BULMC-0007nk-UL for bug-guile@gnu.org; Sun, 30 May 2004 04:07:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BULMA-0007mF-FM for bug-guile@gnu.org; Sun, 30 May 2004 04:07:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BULMA-0007mC-3x for bug-guile@gnu.org; Sun, 30 May 2004 04:07:46 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1BULLa-0002db-53 for bug-guile@gnu.org; Sun, 30 May 2004 04:07:10 -0400 Original-Received: (qmail 4701 invoked by uid 65534); 30 May 2004 08:07:08 -0000 Original-Received: from pD9519224.dip.t-dialin.net (EHLO [192.168.1.15]) (217.81.146.36) by mail.gmx.net (mp005) with SMTP; 30 May 2004 10:07:08 +0200 X-Authenticated: #14729429 In-Reply-To: <87pt8mlw06.fsf@zip.com.au> Original-To: bug-guile@gnu.org X-Mailer: Apple Mail (2.618) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.bugs:1459 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:1459 Kevin Ryde writes: >> Another option would be to handle empty REs in string-match. > > I think it could follow the libc, as long as it doesn't crash. Yes. In practice empty regular expression aren't common anyway. Henry Spencer's regcomp doesn't crash if the regular expression is empty. Instead the error code REG_EMPTY is returned. POSIX doesn't define REG_EMPTY but the RE grammar presented in the POSIX specification doesn't seem to allow empty REs either. See http://www.opengroup.org/onlinepubs/009695399/basedefs/ xbd_chap09.html#tag_09_05 _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile