[augeas-devel] [Augeas] #92: Regex bug in phpvars lens found only by Perl bindings
Augeas
trac at fedorahosted.org
Tue Nov 10 13:35:37 UTC 2009
#92: Regex bug in phpvars lens found only by Perl bindings
---------------------+------------------------------------------------------
Reporter: ddumont | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 0.5.3
Keywords: |
---------------------+------------------------------------------------------
Hello
When running Augeas through its Perl bindings, I get this error:
$ perl t/Config-Augeas.t[[BR]]
1..18[[BR]]
ok 1 - Compilation done[[BR]]
/usr/share/augeas/lenses/dist/phpvars.aug:93.17-.38:invalid regexp
/$[]'0-9A-[_a-z-]+/: Invalid range end[[BR]]
Aborted
The line in question has:
let variable_re = /\$[][A-Za-z0-9'_-]+/
The last '-' in the range is legal according to regex(7). But the error
message shows a different -- and probably wrong -- regex.
On the other hand, augparse does not complain::
$ augparse /usr/share/augeas/lenses/dist/phpvars.aug [[BR]]
$
You can reproduce the problem by running the self-tests of the Perl
bindings (Config::Augeas)
Hope this helps
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/92>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list