Shell: Print a warning when exiting with unterminated input