Package: erlang-base-hipe Version: 1:15.b.1-dfsg-4 Severity: normal
Named subpatterns incorrectly return empty matches if they occur not in alphabetical order. Correct behavior (bar matches 2nd branch): 1> re:run("bar", "^(?<a>foo)(?<b>bla)$|^(?<a>[[:word:]]+)$", [dupnames, {capture, [a, b], list}]). {match,["bar",[]]} Incorrect behavior (bar matches 2nd branch but does not return a match): 2> re:run("bar", "^(?<b>foo)(?<a>bla)$|^(?<b>[[:word:]]+)$", [dupnames, {capture, [b, a], list}]). {match,[[],[]]} Note the only difference is the names given to the subpatterns. The order of the capture list ([a, b]) does not make a difference. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.7.3 (SMP w/4 CPU cores; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages erlang-base-hipe depends on: ii libc6 2.13-37 Embedded GNU C Library: Shared lib ii libncurses5 5.9-10 shared libraries for terminal hand ii libtinfo5 5.9-10 shared low-level terminfo library ii procps 1:3.2.7-11 /proc file system utilities ii zlib1g 1:1.2.7.dfsg-13 compression library - runtime Versions of packages erlang-base-hipe recommends: ii erlang-crypto 1:15.b.1-dfsg-4 Erlang/OTP cryptographic modules ii erlang-syntax-tools 1:15.b.1-dfsg-4 Erlang/OTP modules for handling ab pn libsctp1 <none> (no description available) Versions of packages erlang-base-hipe suggests: ii erlang 1:15.b.1-dfsg-4 Concurrent, real-time, distributed ii erlang-doc 1:15.b.1-dfsg-4 Erlang/OTP HTML/PDF documentation ii erlang-edoc 1:15.b.1-dfsg-4 Erlang/OTP module for generating d ii erlang-gs 1:15.b.1-dfsg-4 Erlang/OTP graphics system pn erlang-manpages <none> (no description available) ii erlang-tools 1:15.b.1-dfsg-4 Erlang/OTP various tools -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org