scsh-users
[Top] [All Lists]

Re: regexp weirdness

To: briand@aracnet.com
Subject: Re: regexp weirdness
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Thu, 02 May 2002 09:04:17 +0200
Cc: scsh-news@zurich.ai.mit.edu
Sender: gasbichl@informatik.uni-tuebingen.de
>>>>> "Brian" == briand  <briand@aracnet.com> writes:

Brian> Welcome to scsh 0.6.0 (Chinese Democracy)
Brian> Type ,? for help.
>> (rx "{ OK=#t }")
Brian> '#{re-string "{ OK=#t }"}
>> (define x (rx "{ OK=#t }"))
>> (regexp-search? x "foo")

Brian> Error: Posix regexp: Invalid content of \{\}
>> #{Regexp}
1> 

Brian> Huh ?

Brian> Well OK.  Guess I have to escape the {

>> (rx "\{ OK=#t \}")

Brian> Error: invalid escapedcharacter in string
>> #\{
>> #{Input-fdport #{Input-channel "standard input"}}

Brian> Guess not...

This works fine for me. However, I use the current version of scsh
(0.6.1).


-- 
Martin

<Prev in Thread] Current Thread [Next in Thread>