xref: /freebsd/contrib/one-true-awk/testdir/T.system (revision 29fc4075e69fd27de0cded313ac6000165d99f8b)
1echo T.system: test system built-in
2
3awk=${awk-../a.out}
4
5rm -f foo
6$awk 'BEGIN {
7	n = system("exit 3")
8	print n
9	exit n+1
10}
11' >foo
12echo $? >>foo
13echo "3
144" >foo1
15diff foo foo1 || echo 'BAD: T.system (1)'
16