You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking at how different projects on quicklisp use uiop:run-program and came across this snippet in woo:
(with-output-to-string (s)
(uiop:run-program "uname -r":output s
:ignore-error-statust))))
I wanted to let you know that passing a stream as uiop:run-program's :output argument, especially one that isn't a file stream, is not very portable. But you can also get string output directly from uiop:run-program (that's far more portable because it internally uses a file) as follows:
Hi,
I was looking at how different projects on quicklisp use uiop:run-program and came across this snippet in woo:
I wanted to let you know that passing a stream as
uiop:run-program
's:output
argument, especially one that isn't a file stream, is not very portable. But you can also get string output directly fromuiop:run-program
(that's far more portable because it internally uses a file) as follows:The text was updated successfully, but these errors were encountered: