--- lisp/tramp-sh.el.orig 2010-12-16 13:31:01.000000000 +0100 +++ lisp/tramp-sh.el 2010-12-16 13:31:07.000000000 +0100 @@ -1734,6 +1734,10 @@ ;; Now grab the output. (with-current-buffer (tramp-get-buffer v) + ;; Remove empty line Yves Blusseau Patch + (goto-char (point-min)) + (while (re-search-forward "^\n" nil t) + (replace-match "" nil nil)) (goto-char (point-max)) ;; Check result code, found in last line of output