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