Fix bug #11182 with the effect of typing '?' in Shell mode.