I'm using Cygwin 64-bits, up-to-date (for today) on Windows 7; and in my terminal window I either work on the local machine or ssh into some other machine (Linux). Now, sometimes, when I scroll back in the history of bash commands, and pass some longer commands (especially in the case of commands running over the end of the line with the prompt and into the next line) - continuing to scroll prints other commands on the prompt line, but keeps characters from (one/some) older command/s if the new command is shorter, e.g.:
[me@mine /some/where]$ the quick brown fox jumped over the lazy dog. the quick brown fox jumped over the lazy dog. [me@mine /some/where]$ another command altogether over the lazy do [me@mine /some/where]$ yet another command jumped over the lazy do
now, not all the characters are retained. Also, this doesn't always happen - I'm not sure exactly what triggers it.
However, if I just ssh into the remote host using, say, putty, not going through cygwin - I don't get this behavior, so it seems it's an issue with Cygwin or its bash.
- What's happening, exactly?
- What's the cause?
- Can I fix it / avoid it happening / work around it (other than by running