[Top][All Lists]

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

Re: [Chicken-users] Spiffy crashes occasionally

From: Peter Bex
Subject: Re: [Chicken-users] Spiffy crashes occasionally
Date: Tue, 14 Jun 2005 09:42:17 +0200
User-agent: Mutt/

On Tue, Jun 14, 2005 at 09:12:52AM +0200, felix winkelmann wrote:
> Oh boy. Do you have PCRE or libc regex? Or are you using pregexp?

I'm not sure.  I think it's using libc regex, since ldd doesn't show any
extra libraries (apart from libm) on chicken, libchicken etc.

On closer look, the regex "^([\\-A-Za-z0-9]+):[ ]*([^ ].*)$" is obviously
invalid.  The dash after the backslashes is illegal.
To quote the manpage:
``It is illegal for two ranges to share an endpoint, e.g. `a-c-e'.''

If you want to include the - sign itself, it should be put first or last:
``To include a literal `-', make it the first or last character, or the
  second endpoint of a range.''

I'm not sure what you want to do with the backslashes.  Is it supposed to
include a literal backslash, or are you trying to escape the dash?

"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

Attachment: pgprKoEC5KFWF.pgp
Description: PGP signature

reply via email to

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