Function: shell-strip-ctrl-m

Strip trailing `^M' characters from the current output group.
This function could be on `comint-output-filter-functions' or bound to a key.

(fn &optional STRING)