Skip to content
Snippets Groups Projects
Commit 866f3cc2 authored by emarsden's avatar emarsden
Browse files

Fix a bug in RUN-PROGRAM's handling of the :append argument to

:if-output-exists and :if-error-exists. The two forms below currently signal
errors if the file /tmp/inexist does not exist, due to the defaulting value
of the :if-exists argument to OPEN. With this change, the output/error file
is created if it does not already exist.

  (ext:run-program "ls" '("/tmp") :output "/tmp/inexist" :if-output-exists :append)

  (ext:run-program "ls" '("/zob") :error "/tmp/inexist" :if-error-exists :append)
parent 80da7b05
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment