Shell auto exit on error, take input when no file is given.