~ft/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2

[PATCH femtolisp] startup script in interactive sessions

Details
Message ID
<20230404195632.517-1-mag-one@autistici.org>
DKIM signature
missing
Download raw message
Patch: +8 -0
---
I find this useful while playing with this wonderful code! thanks!

 system.lsp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/system.lsp b/system.lsp
index 056c176..b651ff6 100644
--- a/system.lsp
+++ b/system.lsp
@@ -1045,6 +1045,13 @@
	    (lambda (e) (begin (top-level-exception-handler e)
			       (exit 1)))))

(define (__rcscript)
  (let ((fname (case *os-name*
               ((unknown) "")
               ((plan9) (string (os.getenv "home") "/lib/flisprc"))
               (else (string (os.getenv "HOME") "/.flisprc")))))
    (if (path.exists? fname) (load fname))))

(define (__start argv)
  (__init_globals)
  (if (pair? (cdr argv))
@@ -1054,5 +1061,6 @@
      (begin (set! *argv* argv)
	     (set! *interactive* #t)
	     (princ *banner*)
             (__rcscript)
	     (repl)))
  (exit 0))
-- 
2.40.0
Details
Message ID
<255D485912883F5628FCA575B6DD11E9@ftrv.se>
In-Reply-To
<20230404195632.517-1-mag-one@autistici.org> (view parent)
DKIM signature
missing
Download raw message
Very nice, thanks!
Details
Message ID
<E4FEC238771D822032F87E4ABCA17AD1@ftrv.se>
In-Reply-To
<20230404195632.517-1-mag-one@autistici.org> (view parent)
DKIM signature
missing
Download raw message
(retrying replying again after SPF failure)

Very nice, thanks! Merged & bootstrapped to get it built in.
Reply to thread Export thread (mbox)