From 8256bf4cdfbdc12838c20b00edcaedddcdf08a32 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Wed, 22 Nov 2023 13:29:19 +0100 Subject: [PATCH] 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 . --- lisp/net/tramp-sh.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5