Package: mawk
Version: 1.3.4.20240819-2
Severity: important
Tags: upstream
X-Debbugs-Cc: marekrusinow...@gmail.com

Dear Maintainer,

In the newest version of mawk, the following invocation returns invalid
result:

$ mawk 'BEGIN { x = "asd "; sub(/ .*$/, "", x); print("|"x"|"); }'
|asd |

Expected result:
|asd|

After downgrading to the previous version 1.3.4.20240622-2 it produces
the correct expected result.

Thank you,
Marek

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.10.6-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
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.39-7

mawk recommends no packages.

mawk suggests no packages.

-- no debconf information

Reply via email to