Bug#1079389: mawk: Incorrect result from sub() in newest version

2024-08-23 Thread Thomas Dickey
On Thu, Aug 22, 2024 at 08:44:08PM -0400, Thomas Dickey wrote: > On Thu, Aug 22, 2024 at 08:12:59PM -0400, Thomas Dickey wrote: > > On Fri, Aug 23, 2024 at 01:53:51AM +0200, Marek Rusinowski wrote: > > > In the newest version of mawk, the following invocation returns invalid > > > result: > > > >

Bug#1079389: mawk: Incorrect result from sub() in newest version

2024-08-22 Thread Thomas Dickey
On Thu, Aug 22, 2024 at 08:12:59PM -0400, Thomas Dickey wrote: > On Fri, Aug 23, 2024 at 01:53:51AM +0200, Marek Rusinowski wrote: > > In the newest version of mawk, the following invocation returns invalid > > result: > > > > $ mawk 'BEGIN { x = "asd "; sub(/ .*$/, "", x); print("|"x"|"); }' > >

Bug#1079389: mawk: Incorrect result from sub() in newest version

2024-08-22 Thread Thomas Dickey
On Fri, Aug 23, 2024 at 01:53:51AM +0200, Marek Rusinowski wrote: > Package: mawk > Version: 1.3.4.20240819-2 > Severity: important maybe normal - packager's choice though. > Tags: upstream > X-Debbugs-Cc: marekrusinow...@gmail.com > > Dear Maintainer, > > In the newest version of mawk, the fol

Bug#1079389: mawk: Incorrect result from sub() in newest version

2024-08-22 Thread Marek Rusinowski
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