Public bug reported:
On Ubuntu 26.04, mawk ignores RS when stdout is a terminal.
printf 'a;b;' | awk 'BEGIN { RS = ";" } { print NR ": " $0 }'
Expected: "1: a" and "2: b". Actual: "1: a;b;".
With "| cat" added at the end, the output is correct.
Upstream 20260129 made -W interactive the default when stdout is a tty.
Upstream 20260302 reverted this because it "interferes with setting RS and FS":
https://invisible-island.net/mawk/CHANGES
Package version: 1.3.4.20260129-1
System details are in the attached mawk.apport.
** Affects: mawk (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "mawk.apport"
https://bugs.launchpad.net/bugs/2173897/+attachment/6016772/+files/mawk.apport
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173897
Title:
mawk 1.3.4.20260129 ignores RS when stdout is a terminal
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mawk/+bug/2173897/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs