guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shell script to start guile w/ repl


From: Matt Wette
Subject: shell script to start guile w/ repl
Date: Tue, 5 Mar 2019 17:21:39 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

Hi All,

I'm trying to generate a shell script that sets up environment for guile and
then executes a guile repl.  I can do that.  It is here:

  #!/bin/sh

  LD_LIBRARY_PATH=/path/to/my/lib
  export LD_LIBRARY_PATH
exec guile -ds $0 $@
  !#
;; ... stuff ... (use-modules (ice-9 top-repl))
  (top-repl)


Now I would like to have the top-repl use an alternate language.
How do I do that?  I tried

  (*current-language* (lookup-language 'nx-tcl))
  (top-repl)

But this fails.  Any hints?  If I use the original script
and type
  scheme@(guile-user)> ,L nx-tcl
I do get into my language, but I don't want to do that by hand.

Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]