Why does Meadow add a ^M at the end of each line in shell mode?
There are two possibilities: • 1) The coding system for the shell mode is not adequately set; or • 2) eol-type in the output from a specific command is different from others. If only a specific command adds ^M and you want to get rid of them, type: M-x shell-strip-ctrl-m If all the commands adds ^M, put (modify-coding-system-alist ‘process “.*sh\\.exe” ‘undecided-dos) or (add-hook ‘comint-output-filter-functions ‘shell-strip-ctrl-m nil t) in your `.emacs’.