Mail Archives: djgpp-workers/1999/02/15/03:05:16
On Sun, 14 Feb 1999, Mark E. wrote:
> > - .bash_history tends to get spurious ^M characters appended to some of
> > the saved commands.
>
> Yep, I've noticed this. Unfortunately, I noticed it well before mixed EOL
> fix so I still don't where to look until I or somebody else can find a
> consistent way to make the bug happen.
This does the trick for me:
rm -f /.bash_history
bash
bash-2.02$ exit
bash
bash-2.02$ exit <- press <up-arrow> to get this line
bash
bash-2.02$ ^M <- press <up-arrow> again here, and you see ^M
(The first line might need to be changed if you keep your
.bash_history somewhere else.)
- Raw text -