ref: 717df14acac498bfb4496066a60c1ae83e93d9b7 dir: /cmd/awk.rc/
#!/bin/rc rfork e fn check{ expected=$1 shift if(~ `{$*} $expected){ status='' } if not{ >[1=2] echo $* '!=' $expected exit 'fail' } } check 0 awk 'BEGIN{print length($1)}'