xref: /freebsd/contrib/one-true-awk/testdir/T.system (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
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