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
the return-code is always the third value returned (and uiop currently makes no guarantee that there will never be a fourth value) so instead of (car (last (multiple-value-list (uiop:run-program)))) you might want to use (nth-value 2 (uiop:run-program))
run-program accepts a :directory argument so that you don't need to use with-directory
unless you pass :ignore-error-status t, run-program will treat a non-zero return code as an error on its own already so that you do not need to call (error) manually yourself (or if you do, you might want to pass :ignore-error-status t to get just one error rather than two.
The text was updated successfully, but these errors were encountered:
Hi,
I was looking at how different projects on quicklisp use
uiop:run-program
and I came across this snippet in weblocks-utils:I wanted to point out that:
:output nil
is the default(car (last (multiple-value-list (uiop:run-program))))
you might want to use(nth-value 2 (uiop:run-program))
run-program
accepts a:directory
argument so that you don't need to usewith-directory
:ignore-error-status t
,run-program
will treat a non-zero return code as an error on its own already so that you do not need to call(error)
manually yourself (or if you do, you might want to pass:ignore-error-status t
to get just one error rather than two.The text was updated successfully, but these errors were encountered: