ref: 4defc0a705893f36adeed5ffd358b4d178ee8f31
dir: /test/T.system/
#!/bin/rc
echo T.system: test system built-in
rm -f foo
$awk 'BEGIN {
n = system("exit 3")
print n
exit n+1 ""
}
' >foo
echo $status | sed 's/^.*: //' >>foo
echo '1
2' >foo1
diff foo foo1 || echo 'BAD: T.system (1)'