Crash when "calling" vars (over 32 chars?)
I call a utility that produces structured output that looks like this:
$ doctl compute image list
ID Name Type Distribution Slug Public Min Disk
35170653 easy-prod-1528668749 snapshot CentOS false 20
36745855 hpt-test-1533006220 snapshot CentOS false 40
42701826 redox-base-image-1548021807 snapshot Ubuntu false 30
If I write this ion script, I get errors from malloc, or a segfault, or an abort, etc.
for x in $(doctl compute image list)
$x
end
Here is a demo. https://asciinema.org/a/222731
Here is a bash script to reproduce
#!/bin/bash
cat << EOF > input.txt
ID Name Type Distribution Slug Public Min Disk
42701826 redox-base-image-1548021807 snapshot Ubuntu false 30
42726964 redox-base-image-1548080353 snapshot Ubuntu false 30
42727677 redox-base-image-1548083300 snapshot Ubuntu false 30
EOF
cat << EOF > crash.ion
for x in \$(cat input.txt)
\$x
end
EOF
ion crash.ion
My ion version, compiled locally
ion 1.0.0-alpha (x86_64-apple-darwin)
rev e40e794744a9c3b8b259c8a74e9dfeeea032b1a9