1.2.0がリリースされていた。Release Version 1.2.0 ・ benhoyt/goawk

変更点

Support additional POSIX escape sequences in string literals:  
\a \b \f \v \xhh (hex) \ooo (octal)  
Fix close() to allow reopening a file after it's been closed  
Make sub/gsub backslash handling per POSIX  
Fix bug in RS="" handling:  
    when input is just newlines  
    when there are newlines at the start of the last record  
Add support for ' ' (space) printf flag  
Add parser/resolver errors for:  
    can't use function name as a parameter  
    global var %q can't also be a function  
    can't call local variable %q as function  
    duplicate parameter name %q  
Treat FS of a single backslash as regex \\ (as other AWKs do)  

追記:
もう 1.2.1 が出ててちょっと笑った Release Version 1.2.1 · benhoyt/goawk

Make a[x] array access set the element if not present (per POSIX spec). This seems unintuitive to me, but it’s very clear in the spec, and awk/gawk/mawk all do this.

今まで(意図的に)この動作させてなかったのか。ふむ。

このログへのコメント

コメントはありません
このエントリーをはてなブックマークに追加