benhoyt / goawk

A POSIX-compliant AWK interpreter written in Go, with CSV support
https://benhoyt.com/writings/goawk/
MIT License
1.94k stars 84 forks source link

Distinguish between /regexp/ and "regexp" in stringified output #222

Closed ypdn closed 8 months ago

ypdn commented 8 months ago

Fixes issue #221

ypdn commented 8 months ago

@benhoyt Could you create a new tag so that go get would download it?

Keep in mind that this change breaks code that has an expression like ast.StrExpr{v} in it.

benhoyt commented 8 months ago

That's okay: 1) the ast package is in internal so it can't be used outside of this repo, and 2) Go package compatibility usually doesn't guarantee that will continue working -- see "struct literals" in https://go.dev/doc/go1compat

benhoyt commented 8 months ago

New version released: https://github.com/benhoyt/goawk/releases/tag/v1.26.0