Skip to content

Tags: xonixx/goawk

Tags

v1.8.1

Toggle v1.8.1's commit message
Hmmm, "go install" doesn't like the "-ftest" file, remove for now

$ go install github.com/benhoyt/goawk@latest
go: downloading github.com/benhoyt/goawk v1.8.0
go install: github.com/benhoyt/goawk@latest: github.com/benhoyt/goawk@v1.8.0: verifying module: github.com/benhoyt/goawk@v1.8.0: reading https://sum.golang.org/lookup/github.com/benhoyt/goawk@v1.8.0: 410 Gone
	server response: not found: create zip: -ftest: malformed file path "-ftest": leading dash

v1.8.0

Toggle v1.8.0's commit message
Bump up version number for release 1.8.0

v1.7.0

Toggle v1.7.0's commit message
remove darwin/386 (no longer supported)

v1.6.1

Toggle v1.6.1's commit message
Fix parsing precedence of unary operators, eg: '!seen[$0]++' idiom (b…

…enhoyt#33)

v1.6.0

Toggle v1.6.0's commit message
Fix split() to have same behavior for single-char FS

Fix case of empty input line (NF should be 0)

v1.5.1

Toggle v1.5.1's commit message
Add script to build cross-platform binaries

Windows, Linux, macOS in 32- and 64-bit variants

Fixes benhoyt#23 (thanks @cup)

v1.4.1

Toggle v1.4.1's commit message
Simplify exec calls to use in/out/err fields directly rather than pipe

For example, we don't need to use StdoutPipe with another goroutine
that copies, we can just use Cmd.Stdout directly. Same for Cmd.Stderr
and Cmd.Stdin.

Add unit tests for the above and bump up version (patch).

v1.4.0

Toggle v1.4.0's commit message
Add config options for "safe mode" to prevent exec and file reads/writes

This is useful for running scripts from untrusted user input.

v1.3.0

Toggle v1.3.0's commit message
Bump up version number for release

v1.2.1

Toggle v1.2.1's commit message
Make a[x] array access set the element if not present (per POSIX spec)

This seems very unintuitive to me, but it's very clear in the spec, and
awk/gawk/mawk all do this.

Also fix delarpm2 gawk test as (again per POSIX) "The results of adding
new elements to array within such a for loop are undefined."