This seems to have been fixed in 14.0 release. On 13.2-STABLE:
$ tput
usage: tput [-T term] attribute ...
Can be closed.
Thanks. The only other test that currently fails for me is aoc/23/04 but that is due to #!/usr/bin/env k instead of #!../../k
I tracked it down to this:
#1 0x000000000023b357 in aV (t=9 '\t', n=4095, v=0x821001000) at m.c:27
27 A aV(C t,U n,O V*v)_(A x=an(n,t);MC(xV,v,(W)n*TW[t]+63>>3);x)
When n-4095,...
It does help! make CC=gcc-12 passes most tests. Though there seems to be a dependency on having k parent dir in $PATH. The tests that fail:
cp o/k-dflt/bin k
o/t;dy/a.sh;cd...
FYI: On Apple M1, the pagesize (what you get with the pagesize command or the getpagesize() syscall) is 16384 but setting ZP to that value makes tests fail (more or less) the same way as with...
Not sure how to proceed since it seems to have crashed without leaving anything behind for me to examine.
It dies in line 8 of repl.k. It may be easier to first debug tests that fail.
For...