Sometimes (rarely) it happens that when I hit enter on a terminal, the command prompt doesn't go to the next line, but it gets printed again on the same line.
My work around is to simply close the terminal and open a new one. Is there any way to avoid this?
Steps to reproduce:
- try to log into mongo with authentication enabled, so that you get the prompt to enter the password, like so:
mongo --authenticationDatabase somedb -u someuser -p,
- then in the password prompt that is shown, hit
ctrl+c, voila, now everything is on same line