The attached patch addresses the broken semantics of -prelude/-postlude
in the compiler driver, as reported by sjamaan.


felix
From 8a457027563789e6dbedbc1c2045b66d37c36800 Mon Sep 17 00:00:00 2001
From: felix <[email protected]>
Date: Mon, 24 Oct 2022 11:21:54 +0200
Subject: [PATCH] fix broken handling of prelude/postlude options

Signed-off-by: felix <[email protected]>
---
 support.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support.scm b/support.scm
index 3a397219..dd230465 100644
--- a/support.scm
+++ b/support.scm
@@ -356,7 +356,7 @@
                      (let loop ((lst '()))
                        (let ((x (read)))
                          (if (eof-object? x)
-                             (apply values (reverse lst))
+                             (reverse lst)
                              (loop (cons x lst)))))))))
          (cond [(null? xs) '(##core#undefined)]
                [(null? (cdr xs)) (car xs)]
-- 
2.28.0

Reply via email to