Better support for uiop/run-program::%run-program (pipping)

parent 44463e96
......@@ -197,7 +197,10 @@ The &key arguments have the following meanings:
(when (and value (probe-file value))
(ecase if-does-exist
(:error (error "Output file ~S does already exist." value))
(:supersede (rename-file (make-temp-file) value))
(:supersede
(with-open-file (f value
:direction :output
:if-exists if-does-exist)))
(:append (setf appendp T))
((NIL) (return-from setup-output-redirection))))
(if appendp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment