#62 New problem with SRE in 0.6.0

closed-fixed
run-time (53)
5
2002-02-16
2002-01-11
No

With scsh 0.6.0 I get an error with the (admittedly
pretty hairy) SRE given below, while it was working
fine with 0.5.3. The following two session extracts
exhibit the problem.

With scsh 0.5.3, everything was fine:
----------------------------------------------------------------------
Scsh 0.5.3
> (define atom-rx (rx (+ (~ control ("(){ %*") #\" #\\))))
> (define flag-rx (rx (? #\\) ,atom-rx))
> (define ext-flag-rx (rx (| "\\*" ,flag-rx)))
> (regexp-search ext-flag-rx "toto")
'#{regexp-match}
----------------------------------------------------------------------

With scsh 0.6.0, I get an error:
----------------------------------------------------------------------
Welcome to scsh 0.6.0 (Chinese Democracy)
Type ,? for help.
> (define atom-rx (rx (+ (~ control ("(){ %*") #\" #\\))))
> (define flag-rx (rx (? #\\) ,atom-rx))
> (define ext-flag-rx (rx (| "\\*" ,flag-rx)))
> (regexp-search ext-flag-rx "toto")

Error: Posix regexp: brackets ([ ]) not balanced
#{Regexp}
1>
----------------------------------------------------------------------

Michel.

Discussion

  • Martin Gasbichler

    • assigned_to: nobody --> olin-shivers
     
  • Martin Gasbichler

    Logged In: YES
    user_id=17553

    I think this report didn't make it to the mailing list.
    Olin: Do you have the time to fix this?

     
  • Mike Sperber

    Mike Sperber - 2002-02-16
    • status: open --> closed-fixed
     
  • Mike Sperber

    Mike Sperber - 2002-02-16

    Logged In: YES
    user_id=43931

    Fixed for 0.6.1.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks