diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-07-13 19:32:42 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-07-13 19:32:42 -0700 |
commit | 350be6c791db8c943b284d8e53d768a1a2a1ee50 (patch) | |
tree | 8e7d5f9ecabdc4a602f6c9320b948d73c8dbc547 /src/connection.lisp | |
parent | 63f4de9e95473f30df8f044e4967c1c51cf7c6e2 (diff) | |
download | consfigurator-350be6c791db8c943b284d8e53d768a1a2a1ee50.tar.gz |
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 <spwhitton@spwhitton.name>
Diffstat (limited to 'src/connection.lisp')
-rw-r--r-- | src/connection.lisp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |