awk/testdir/T.system
Arnold D. Robbins d6c466c367 Extract testdir.
2019-06-23 03:13:57 -06:00

16 lines
205 B
Plaintext
Executable File

echo T.system: test system built-in
awk=${awk-../a.out}
rm -f foo
$awk 'BEGIN {
n = system("exit 3")
print n
exit n+1
}
' >foo
echo $? >>foo
echo "3
4" >foo1
diff foo foo1 || echo 'BAD: T.system (1)'