cmd | getline array[index] is parsed as an error
Popkornium18 opened this issue · comments
Popkornium18 commented
It is actually possible to getline
into an array with a specific index.
awk 'BEGIN{"echo hello | rev" | getline arr[1]; print(arr[1])}'
olleh
However it is parsed as an error by tree-sitter-awk.
Stanislav Chernov commented
Thanks for reporting! Next release will have the fix.