Skip to content

incompatibility between gawk and awka for match #13

@prRZ5F4LXZ

Description

@prRZ5F4LXZ

https://github.com/jlp765/awka/tree/enhancement/more

I used the above version. But I think it should be the same as the main version for this issue. See below.

$ awk_code='BEGIN { print match("abc", /(a)/, a); print length(a), a[1]; for(k in a) print k, a[k] }'
$ awka "$awk_code" > "$tmpdir"/a.c
$ gcc -lawka -o "$tmpdir"/a.out "$tmpdir"/a.c
$ "$tmpdir"/a.out
1
2 a
0 a
1 a
main.sh> awk -e "$awk_code"
1
6 a
0start 1
0length 1
1start 1
1length 1
0 a
1 a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions