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"|"); }' > > |asd | > > thanks - I can reproduce this > (though puzzled how added and existing tests didn't show this regression) > > I'll see how to fix (and add this case...)
fwiw, the regression came in the set of changes for this bug-fix: https://github.com/ThomasDickey/original-mawk/issues/76 ...which is about 100 lines modified. I'll pick that apart and see how to fix both :-) -- Thomas E. Dickey <dic...@invisible-island.net> https://invisible-island.net
signature.asc
Description: PGP signature