awk/testdir/u.main
Arnold D. Robbins d6c466c367 Extract testdir.
2019-06-23 03:13:57 -06:00

10 lines
479 B
Plaintext

BEGIN {
print "bunch of commandline error messages follow\n"
t = ARGV[0]; print "\n" t "\n"; system(t) # usage
t = ARGV[0] " -f"; print "\n" t "\n"; system(t) # no program file
t = ARGV[0] " -f /glop/glop"; print "\n" t "\n"; system(t) # program inaccessible
t = ARGV[0] " -zzz"; print "\n" t "\n"; system(t) # weird option
t = ARGV[0] " -F"; print "\n" t "\n"; system(t) # null FS
t = ARGV[0] " -F :"; print "\n" t "\n"; system(t) # field sep but no program
}