Your message dated Sat, 16 Dec 2023 16:55:13 +0100
with message-id <[email protected]>
and subject line Re: Bug#728484: cidr match of ::1/128 is too generic
has caused the Debian Bug report #728484,
regarding cidr match of ::1/128 is too generic
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
728484: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728484
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rgxg
Version: 0.1-1
Severity: normal
% echo 2001:d8b::1 | egrep $(rgxg cidr ::1/128)
2001:d8b::1
This is a difficult one, and I don't think that the '^' anchor is
a good idea. I think you need negative lookaheads or the like to
ensure that there is nothing before '::1' in the sample, unless it
matches the regexp, and the prefix length also plays a role in this…
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.11-rc4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages rgxg depends on:
ii libc6 2.17-93
ii librgxg0 0.1-1
rgxg recommends no packages.
rgxg suggests no packages.
-- no debconf information
--
.''`. martin f. krafft <[email protected]> Related projects:
: :' : proud Debian developer http://debiansystem.info
`. `'` http://people.debian.org/~madduck http://vcs-pkg.org
`- Debian - when you have better things to do than fixing systems
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
--- End Message ---
--- Begin Message ---
On Fri, Nov 01, 2013 at 06:58:59PM +0100, martin f krafft wrote:
> % echo 2001:d8b::1 | egrep $(rgxg cidr ::1/128)
> 2001:d8b::1
>
> This is a difficult one, and I don't think that the '^' anchor is
> a good idea. I think you need negative lookaheads or the like to
> ensure that there is nothing before '::1' in the sample, unless it
> matches the regexp, and the prefix length also plays a role in this…
This is expected.
rgxg cannot guess in which context the generated regular expression is
used, therefor it is up to the user to ensure that the regular
expression works as expected in the given context (e.g. by adding
anchors, boundaries or lookaheads/lookbehinds). Please also see the
NOTES section (added via [440d605] in 2016) of the [rgxg.1] manual page
for more details.
Furthermore the generated regular expressions are explicitly Extended
Regular Expressions and not PCRE, so negative lookbehind syntax is not
available.
Hence I close this bug.
Best regards
Hannes
[rgxg.1] https://manpages.debian.org/bookworm/rgxg/rgxg.1.en.html#NOTES
[440d605] https://github.com/rgxg/rgxg/commit/440d605
--- End Message ---