libmisc/shell: Edit history hack is corrupting memory. Remove it.
The hack was a debug aid and is not needed.
Close #2203.