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

parent 44463e96
...@@ -197,7 +197,10 @@ The &key arguments have the following meanings: ...@@ -197,7 +197,10 @@ The &key arguments have the following meanings:
(when (and value (probe-file value)) (when (and value (probe-file value))
(ecase if-does-exist (ecase if-does-exist
(:error (error "Output file ~S does already exist." value)) (: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)) (:append (setf appendp T))
((NIL) (return-from setup-output-redirection)))) ((NIL) (return-from setup-output-redirection))))
(if appendp (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