From 350be6c791db8c943b284d8e53d768a1a2a1ee50 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 13 Jul 2021 19:32:42 -0700 Subject: MKTEMP: avoid capturing echo builtin's stderr In the case where there is no m4(1) on PATH we get "sh: 1: echo: echo: I/O error" as the first line of output. Signed-off-by: Sean Whitton --- src/connection.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/connection.lisp') diff --git a/src/connection.lisp b/src/connection.lisp index 57b48c6..b2b0cac 100644 --- a/src/connection.lisp +++ b/src/connection.lisp @@ -286,7 +286,7 @@ which will be cleaned up when BODY is finished." ;; writeable by its owner, POSIX doesn't require this, so set a umask. (connection-run connection - #?"umask 077; echo 'mkstemp(${template})' | m4 2>/dev/null || mktemp '${template}'" +#?"umask 077; echo 'mkstemp(${template})' 2>/dev/null | m4 2>/dev/null || mktemp '${template}'" nil) (let ((lines (lines out))) (if (and (zerop exit) lines) -- cgit v1.2.3