xref: /freebsd/contrib/one-true-awk/testdir/t.beginexit (revision 23f24377b1a9ab6677f00f2302484d6658d94cab)
1*23f24377SWarner LoshBEGIN {
2*23f24377SWarner Losh	while (getline && n++ < 10)
3*23f24377SWarner Losh		print
4*23f24377SWarner Losh	exit
5*23f24377SWarner Losh}
6*23f24377SWarner Losh{ print }
7