Subject: bug#9961: Subject: 24.0.91; shell prompt doubled

From: Glenn Morris <[email-masked]>
Date: Mon, 07 Nov 2011 16:58:36 -0500

The patch (which could not be applied anyway due to copyright reasons)
simply silently makes comint-exec ignore its STARTFILE argument, which
obviously cannot be the correct solution.

This issue occurs since at least Emacs 21.1.
If you have a non-empty ~/.emacs_bash file, eg one that contains just:

#comment

and do M-x shell with the bash shell, then you get an extra N copies of
your prompt, as the N lines of ~/.emacs_bash are fed to the shell by
comint-exec.