1 jfindmain > jfindmain.out 2>&1
# caution: jfindmain outputs its entire pathname as part of error message,
# which makes output installation dependent.
# so:
# (1) make sure first line is good:
0 grep "found multiple (2) mains" jfindmain.out >/dev/null 2>&1
# (2) check rest of lines:
0 tail -n 3 jfindmain.out > No_input.out 2>/dev/null
0 cmp jfindmain.std No_input.out
0 rm -rf *.class core *.out

# try bad jgo anyway
1 jgo "a b  c" Z "d  e f" > No_input.out 2>&1
0 grep "found multiple (2) mains" No_input.out >/dev/null 2>&1
0 rm -rf *.class core *.out

# try bad jgox anyway
1 jgox "a b  c" Z "d  e f" > No_input.out 2>&1
0 grep "found multiple (2) mains" No_input.out >/dev/null 2>&1
0 rm -rf *.class core *.out
