github benhoyt/goawk v1.6.0
Version 1.6.0

latest releases: v1.29.0, v1.28.1, v1.28.0...
5 years ago

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.

Don't miss a new goawk release

NewReleases is sending notifications on new releases.