[et-mgmt-tools] [PATCH] Fix Relax-NG pattern matching

David Lutterkort dlutter at redhat.com
Thu Jul 24 20:46:32 UTC 2008


On Thu, 2008-07-24 at 09:37 -0700, john.levon at sun.com wrote:
> # HG changeset patch
> # User john.levon at sun.com
> # Date 1216917462 25200
> # Node ID 4b889eda816bdb1b3bff21fd8a2a89029813a1a2
> # Parent  cd648dc6a9492fe3b703e5ebc7f43d05bb03adeb
> Fix Relax-NG pattern matching
> 
> Don't use unescaped meta-characters in the patterns.

Haven't checked myself, but are you sure that in the Relax-NG '.' and
'+' retain their special meaning inside character classes ? In some
regex syntaxes (e.g. extended POSIX) they are treated as ordinary
characters inside a character class - as an example, run
        echo "a.b.c" | sed -r -e 's/[.]/:/g'
        
In any event, the '-' characters need to go at the very end of those
character classes - that's definitely broken.

David





More information about the et-mgmt-tools mailing list