Releases: benhoyt/goawk
Version 1.9.1
CLI: fix handling of "-" argument: #71
Version 1.9.0
Includes the following features and fixes:
- Add support for
getline <"-"andprint >"-": #63 - Add
ShellCommandconfig option and change default to/bin/sh(on Unix): #64 - Make number literal edge cases behave like awk/gawk: #69
- Disallow statements immediately after another one without
;or newline separator: #68 - Fill in unknown parameter types that are being called with arrays: #70 (fixes #45)
- Various other minor tweaks (see all commits)
Version 1.8.1
Fix go install bug due to presence of -ftest file (see 0adcb10).
Version 1.8.0
- Add support for "--", stop parsing flags when arg not prefixed with "-" #56
- On Windows, expand wildcards in program (-f) and input filenames #55
- Build and test on Go 1.17 - significant performance improvements
Version 1.7.0
- Add support for
fflush(): #42 - Don't buffer stderr: 86f7096
- Switch from Travis CI to GitHub Actions: #50
- Change README links from godoc.org to pkg.go.dev: aed202c
- getline: return -1 instead of erroring when reading non-existent file #41
- Buffer output piped to commands for significant performance boost 89aae73
Version 1.6.1
Fix the precedence handling when parsing unary operators, which fixes things like the "print unique lines" idiom !seen[$0]++.
Thanks @sergeevabc. Fixes #33.
Version 1.6.0
Fix handling of single-character FS.
Per POSIX spec (and the various implementations), a 1-char FS should be handled specially as a straight string split and not a regex. However, I had overlooked this, and was only doing this in the case of "\". This fixes things like FS="|" as reported by @shah in #29 (thanks!).
Bumped up minor version, seems like a fairly significant change rather than just a patch fix.
Also fix split() to have same behavior for single-char FS.
Fixes #29.
Version 1.5.1
Change command line parsing to allow -F and similar flags without a space between the option and the argument (allowed by POSIX), for example -F: (thanks Arnold Robbins)
Also tweaked output of -version to be just the bare version tag so it's machine-readable. -h or --help now includes the copyright message.
First release with binaries attached (see make_binaries.sh). Thanks @cup.
Version 1.4.1
Simplify exec calls to use in/out/err fields directly rather than pipe
Version 1.4.0
Add config options for "safe mode" to prevent exec and file reads/writes. This is useful for running scripts from untrusted user input.