Command history in emacs shell mode

bash, emacs

Solution

`M-p` (and `M-n` for the other direction) will do the trick.

Here is the link to the Emacs manual on the subject.

Problem

In the bash shell, I can use the up arrow key to navigate to a previously entered command. But this does not work in emacs shell mode. Is there any way to enable this?

Original source