From ba958aaa8308e5998b0e34e7a6e0f9ac345e0ca1 Mon Sep 17 00:00:00 2001 From: vindarel Date: Wed, 18 Oct 2023 12:23:47 +0200 Subject: [PATCH] os.md: run-program strip newline with '(:string :stripped t) --- os.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/os.md b/os.md index f3220ceb..f2f36a73 100644 --- a/os.md +++ b/os.md @@ -407,7 +407,8 @@ will be received before `listen` or `read-char-no-hang` return `nil`. ### Capturing standard and error output Capturing standard output, as seen above, is easily done by telling -`:output` to be `:string`. +`:output` to be `:string`, or using `:output '(:string :stripped t)` to +strip any ending newline. You can ask the same to `:error-output` and, in addition, you can ask `uiop:run-program` to *not* signal an error, thus to not enter the