unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: "Andreas Vögele" <voegelas@gmx.net>
Subject: Re: empty regular expressions don't work on the BSDs
Date: Sun, 30 May 2004 10:07:05 +0200	[thread overview]
Message-ID: <5710518A-B210-11D8-B494-000D93673682@gmx.net> (raw)
In-Reply-To: <87pt8mlw06.fsf@zip.com.au>

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


      reply	other threads:[~2004-05-30  8:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-28 20:28 empty regular expressions don't work on the BSDs Andreas Vögele
2004-05-29 22:16 ` Kevin Ryde
2004-05-30  8:07   ` Andreas Vögele [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

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5710518A-B210-11D8-B494-000D93673682@gmx.net \
    --to=voegelas@gmx.net \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).