diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 7f1a52fa93..81b99b7c3c 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -2938,7 +2938,11 @@ tramp-sh-handle-make-process (process-put p 'remote-pid pid) (tramp-set-connection-property p "remote-pid" pid)) ;; Disable carriage return to newline translation. - (when (memq connection-type '(nil pipe)) + (when (and (memq connection-type '(nil pipe)) + (not (string-match-p + "Darwin" + (tramp-get-connection-property + v "uname" "")))) (tramp-send-command v "stty -icrnl")) ;; `tramp-maybe-open-connection' and ;; `tramp-send-command-and-read' could have