Eli Zaretskii writes: >> Date: Tue, 14 Jun 2022 20:01:30 +0200 >> From: miha--- via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> In M-x shell, execute "stty -nl" to make the tty translate \n into \r\n >> on output, and press "M-RET" (shell-resync-dir). > > I guess this requires to set coding-system for reading the shell > output to -dos? That could be an option, though I was thinking of a bit less invasive and more local fix by performing a simple replace-regexp at the end of the function `shell-eval-command'.