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
<dominique@quatravaux.org>.
This commit is contained in:
Michael Albinus 2023-11-22 13:29:19 +01:00
parent 81b63ec032
commit 8256bf4cdf

View file

@ -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