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