scsh-hackers
[Top] [All Lists]

[ scsh-Bugs-1005029 ] contradicting statements about the any char class

To: scsh-hackers@scsh.net
Subject: [ scsh-Bugs-1005029 ] contradicting statements about the any char class in manual
From: "SourceForge.net" <noreply@sourceforge.net>
Date: Mon, 30 Aug 2004 05:10:27 -0700
List-id: Discussion among the implementors <scsh-hackers.list-id.scsh.net>
Bugs item #1005029, was opened at 2004-08-07 09:06
Message generated for change (Settings changed) made by mainzelm
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110493&aid=1005029&group_id=10493

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Eric Knauel (eknauel)
>Assigned to: Mike Sperber (sperber)
Summary: contradicting statements about the any char class in manual

Initial Comment:
Section 6.3 of the manual says about the ANY character class:

Another simple SRE is the symbol any, which matches any single 
character -- including newline and ASCII nul.

while a note in section 6.4 says:

{Note There is no way to include the ASCII NUL character in a 
character set or search for it in any other way using regular 
expression. This is because the POSIX regexp facility is based on 
the C language which uses ASCII NUL to terminate strings.}

I guess that the latter behavior is true:

[0 knauel@galibier ~] ledit scsh
Welcome to scsh 0.6.6 (King Conan)
Type ,? for help.
> (string-match (rx any) (string (ascii->char 0)))
#f

This was noted by Christoph Hetz.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110493&aid=1005029&group_id=10493

<Prev in Thread] Current Thread [Next in Thread>
  • [ scsh-Bugs-1005029 ] contradicting statements about the any char class in manual, SourceForge.net <=