From: Michael Albinus Date: Wed, 22 Nov 2023 12:29:19 +0000 (+0100) Subject: Fix CRLF handling in Tramp (don't merge) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8256bf4cdfb;p=emacs.git Fix CRLF handling in Tramp (don't merge) * lisp/net/tramp-sh.el (tramp-send-command-and-read): Use 'space' instead of 'blank' in rx expression, in order to handle also CR and alike. Reported by Dominique Quatravaux . --- diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 7dc75cb337a..aa1d025bf19 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -5509,7 +5509,7 @@ raises an error." (unless noerror signal-hook-function))) (read (current-buffer))) ;; Error handling. - (when (re-search-forward (rx (not blank)) (line-end-position) t) + (when (re-search-forward (rx (not space)) (line-end-position) t) (error nil))) (error (unless noerror (tramp-error