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