described main() in shell/maynard.c