This release adds one small new feature and fixes a subtle but long-standing bug:
- The new feature is the
-N modecommand-line option (and correspondinginterp.ConfigfieldNewlineOutput) to control newline translation on output. Currently the default is "smart", meaning no translation (-N raw) on Unix/Linux and translate LF to CR LF (-N crlf) on Windows, but you can override the OS-based default with the-Noption. Thanks @hymkor for the contribution. - The bug fix is that previously GoAWK used the Go default of "leftmost-first matching", whereas other AWKs use "leftmost-longest matching". So switch to that using the
Regexp.Longestmethod.
This release also includes a small performance improvement to the postincr/postdecr bytecode by @triallax in #253.
Full Changelog: v1.29.1...v1.30.0