Can "quit" be made to quit?

I think the reasonable solution is to provide the freedom to customize the shell for users. For example, if sys.interpreterhook(tokens) were provided, the new function will be called when enter key is pressed in the shell but before pushing to the interpreter so that the user can customize the real command to pass.

Actually, I have coded and used it in my customized shell. For example, please see the example code and the demonstration here.

It would be completely unnecessary for beginners, but for seniors, the sky’s the limit. (I’m positive about the word :slightly_smiling_face:)