xref: /freebsd/contrib/one-true-awk/testdir/u.main (revision 23f24377b1a9ab6677f00f2302484d6658d94cab)
1*23f24377SWarner LoshBEGIN {
2*23f24377SWarner Losh	print "bunch of commandline error messages follow\n"
3*23f24377SWarner Losh	t = ARGV[0]; print "\n" t "\n"; system(t)				# usage
4*23f24377SWarner Losh	t = ARGV[0] " -f"; print "\n" t "\n"; system(t)			# no program file
5*23f24377SWarner Losh	t = ARGV[0] " -f /glop/glop"; print "\n" t "\n"; system(t)	# program inaccessible
6*23f24377SWarner Losh	t = ARGV[0] " -zzz"; print "\n" t "\n"; system(t)			# weird option
7*23f24377SWarner Losh	t = ARGV[0] " -F"; print "\n" t "\n"; system(t)			# null FS
8*23f24377SWarner Losh	t = ARGV[0] " -F :"; print "\n" t "\n"; system(t) 		# field sep but no program
9*23f24377SWarner Losh}
10