When I type a long command line like dddddddddddddddddddddddddddd here, the command will overwrite the last line without changing to new line.
I first use SSH to connect to the host, then docker exec -it 525d5808c4a9 bash to the docker container.
Here is the PS1 variable of the container.
root@525d5808c4a9:/home/mhtan/git/pytorch-pretrained-bert/examples# echo $PS1
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$
dddddddddddddddddddhome/mhtan/git/pytorch-pretrained-bert/examples# dddddddddddd
A similar question is No new line in terminal ubuntu after changing prompt style, but that does not solve my case.
Can anybody help with this?
echo "$PS1" | grep $'\e'to check for raw escapes in the PS1. Hopefully it won't find anything. – wjandrea Jan 24 '19 at 03:35oh my zshbefore ssh to the host – Vimos Jan 24 '19 at 03:35