Is input the empty string when you're calling splitcsvline? What are
you providing as an input source? (If you don't provide a file source
at all for input you'll just get the empty string.)
echo -en '1,2\n4,3\n' | szl -e 'fields: array of bytes =
splitcsvline(input); emit stdout <- string(fields[0]);' /dev/stdin
1
4
szl -e 'fields: array of bytes = splitcsvline(B""); emit stdout <-
string(fields[0]);'
(index out of bounds error)
szl -e 'emit stdout <- format("%b", input == B"");'
true
--
D. Hilley (d...@google.com)