I'm a bit nervous about this literal testing of certain commands: why
not allow _any_ CLI commands to be supported in this way? I
understand that you were trying to mention every command that runs the
inferior, but the implication is that we will need to remember to add
to this list any new command that has similar effects. That sounds
like a PITA; could a more general solution be devised?
But I'm afraid that I'm somehow missing something, so could you please
elaborate on the design of the solution you propose?