Hi,

I was unable to build eggs with chicken scheme 5.4.0rc1 on windows
(mingw-msys). egg-info files were empty.

I noticed that ">>" was changed to "^>^>" in the code so nothing was
written to egg-info files.


Jani Hakala

>From 53548a383a556c7b05ffa215250222c7f09e13d9 Mon Sep 17 00:00:00 2001
From: Jani Hakala <jahak...@iki.fi>
Date: Tue, 4 Jun 2024 11:19:08 +0300
Subject: [PATCH] Apply caretize only to the echoed line

---
 egg-compile.scm | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/egg-compile.scm b/egg-compile.scm
index dd7c429e..7d4c463e 100644
--- a/egg-compile.scm
+++ b/egg-compile.scm
@@ -1185,14 +1185,16 @@ copy /y nul ~a~a~%
 ~a
 EOF
                mkdir ddir qdir
-	       ddir dest
-	       (string-intersperse (map (lambda (line)
-					  (ensure-line-limit
-                                             (caretize (format "echo ~a >>~a~a"
-                                                               line ddir dest))
-                                             8191 ))
-					(string-split infostr "\n"))
-				   "\n"))))))
+               ddir dest
+               (string-intersperse (map (lambda (line)
+                                          (ensure-line-limit
+                                            (format "echo ~a >>~a~a"
+                                                    (caretize line)
+                                                    ddir
+                                                    dest)
+                                            8191))
+                                        (string-split infostr "\n"))
+                                   "\n"))))))
 
 ;;; some utilities for mangling + quoting
 
-- 
2.30.2

Reply via email to