* lisp/net/tramp-sh.el (tramp-sh-handle-make-process): Accept nil
COMMAND. (Bug#44151)
* test/lisp/net/tramp-tests.el (tramp-test29-start-file-process):
Extend test.
(signal 'wrong-type-argument (list #'stringp name)))
(unless (or (null buffer) (bufferp buffer) (stringp buffer))
(signal 'wrong-type-argument (list #'stringp buffer)))
- (unless (consp command)
+ (unless (or (null command) (consp command))
(signal 'wrong-type-argument (list #'consp command)))
(unless (or (null coding)
(and (symbolp coding) (memq coding coding-system-list))
;; echoes also the sent string.
(should (string-match "\\`foo" (buffer-string))))
+ ;; Cleanup.
+ (ignore-errors (delete-process proc)))
+
+ ;; PTY.
+ (unwind-protect
+ (with-temp-buffer
+ (if (not (tramp--test-sh-p))
+ (should-error
+ (start-file-process "test4" (current-buffer) nil)
+ :type 'wrong-type-argument)
+ (setq proc (start-file-process "test4" (current-buffer) nil))
+ (should (processp proc))
+ (should (equal (process-status proc) 'run))
+ (should (stringp (process-tty-name proc)))))
+
;; Cleanup.
(ignore-errors (delete-process proc))))))