I execute an incorrect command over ssh:
watch /bin/df | grep _23
Now I execute a command like env
and get this:
LC_TERMINAL_VERSION=3.3.4
LC_TERMINAL=iTerm2
LC_CTYPE=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_ALL=en_US.UTF-8
SHELL=/usr/bin/zsh SSH_TTY=/dev/pts/26
TERM=xterm-256color
DISPLAY=localhost:16.0
XDG_SESSION_ID=18040
XDG_RUNTIME_DIR=/run/user/1000
SHLVL=1
It looks like the output line separator is a line feed but not carriage return.
But I'm not sure it only happens over ssh. I think I've seen this behavior after using vim
too.
Why does this happen and what is the minimal way to reset it? I usually run source ~/.zshrc
but that is overkill.