Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incompatibility between gawk and awka for match #13

Open
prRZ5F4LXZ opened this issue Jul 18, 2021 · 0 comments
Open

incompatibility between gawk and awka for match #13

prRZ5F4LXZ opened this issue Jul 18, 2021 · 0 comments

Comments

@prRZ5F4LXZ
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant