Your message dated Sun, 21 Dec 2025 10:24:20 -0500
with message-id <[email protected]>
and subject line Re: mawk: Handling of { } broken
has caused the Debian Bug report #1085232,
regarding mawk: Handling of { } broken
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.)
--
1085232: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085232
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mawk
Version: 1.3.4.20240905-1
Severity: normal
X-Debbugs-Cc: [email protected]
Hello,
following up on a thread in #debian-devel:
mawk(1) claims to support the same regex syntax as grep -E, however the
behaviour of regexes involving {n,m} is different/strange.
$ printf '%s\n' 'x' 'xxx' 'xx' 'xxxx'| mawk '/^x{2,3}$/'
xx
$ printf '%s\n' 'x' 'xxx' 'xx' 'xxxx'| grep -E '^x{2,3}$'
xxx
xx
I would have expected that the output of both commands is identical (and
includes "xxx" as grep does).
Best regards
Uwe
-- System Information:
Debian Release: trixie/sid
APT prefers testing-debug
APT policy: (750, 'testing-debug'), (750, 'testing'), (700,
'stable-updates'), (700, 'stable-security'), (700, 'stable-debug'), (700,
'stable'), (600, 'unstable'), (500, 'unstable-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf
Kernel: Linux 6.10.9-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages mawk depends on:
ii libc6 2.40-2
mawk recommends no packages.
mawk suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 1.3.4.20250131-1
On Thu, 17 Oct 2024 08:35:52 +0200 =?utf-8?q?Uwe_Kleine-K=C3=B6nig?=
<[email protected]> wrote:
Package: mawk
Version: 1.3.4.20240905-1
Severity: normal
X-Debbugs-Cc: [email protected]
Hello,
following up on a thread in #debian-devel:
mawk(1) claims to support the same regex syntax as grep -E, however the
behaviour of regexes involving {n,m} is different/strange.
$ printf '%s\n' 'x' 'xxx' 'xx' 'xxxx'| mawk '/^x{2,3}$/'
xx
$ printf '%s\n' 'x' 'xxx' 'xx' 'xxxx'| grep -E '^x{2,3}$'
xxx
xx
I would have expected that the output of both commands is identical (and
includes "xxx" as grep does).
This bug is fixed since mawk/1.3.4.20250131-1.
Thanks,
Boyuan
--- End Message ---