Skip to content

Releases: benhoyt/goawk

Version 1.9.1

23 Oct 23:25

Choose a tag to compare

CLI: fix handling of "-" argument: #71

Version 1.9.0

23 Oct 10:12

Choose a tag to compare

Includes the following features and fixes:

  • Add support for getline <"-" and print >"-": #63
  • Add ShellCommand config 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

18 Aug 21:02

Choose a tag to compare

Fix go install bug due to presence of -ftest file (see 0adcb10).

Version 1.8.0

18 Aug 20:52

Choose a tag to compare

  • 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

27 Feb 04:05

Choose a tag to compare

  • 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

09 Mar 02:46

Choose a tag to compare

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

19 Jun 01:02

Choose a tag to compare

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

28 Apr 22:00

Choose a tag to compare

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

24 Jan 03:11

Choose a tag to compare

Simplify exec calls to use in/out/err fields directly rather than pipe

Version 1.4.0

21 Jan 16:11

Choose a tag to compare

Add config options for "safe mode" to prevent exec and file reads/writes. This is useful for running scripts from untrusted user input.