From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: shell script to start guile w/ repl Date: Tue, 5 Mar 2019 17:21:39 -0800 Message-ID: <042c5b68-7fd7-0eb0-5a65-122e8ae00020@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="123509"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Mar 06 02:22:05 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1LG0-000W0b-PE for guile-user@m.gmane.org; Wed, 06 Mar 2019 02:22:04 +0100 Original-Received: from localhost ([127.0.0.1]:52148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1LFz-0004Pd-I4 for guile-user@m.gmane.org; Tue, 05 Mar 2019 20:22:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1LFg-0004PU-GJ for guile-user@gnu.org; Tue, 05 Mar 2019 20:21:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1LFf-0004B3-Th for guile-user@gnu.org; Tue, 05 Mar 2019 20:21:44 -0500 Original-Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:39196) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1LFf-0004AO-Ib for guile-user@gnu.org; Tue, 05 Mar 2019 20:21:43 -0500 Original-Received: by mail-pf1-x42b.google.com with SMTP id i20so7105103pfo.6 for ; Tue, 05 Mar 2019 17:21:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=Adq/IoqXrg1uhdDWXOligyg59oSL4uDV43LgHDMI+Y8=; b=cV18jQSA4XPAm7MMXa9G5it4mGtRja305LccDbQ7cx3l+j1Gz1y+u5EPiHVSZE5qKH dkBPJfD0yOWkkz2Ip/QBX1T4p8p9spDZtbXn1b2nNo/Kd3ngu4XSAjKY54Y2vG7dkRfS x6hcmYgfV5wSnAZFvMW2XBOXK2oU5QJFQK5y4ZUeljb0v8C+cfxkuyS5xPJSn4AlXn14 XRv9KW1NAmFEFqoHbszXnu75CFxnxJhR0Kogoy/gIMoKJjfEKQLQoE0IbUFSATjHPs30 WbUPHCIO0UG34haKOKLKU6DMFPiu4jDZvYMEN3QUj15LL37U2KDLBBK6NlgEKTPI9c06 ev7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=Adq/IoqXrg1uhdDWXOligyg59oSL4uDV43LgHDMI+Y8=; b=QpFDZVZw9k/sJLA09wNeoJQkRm3LIHPXEqhnlXPkhn5SFS3twMOa9EyHVgzZxgwIYl tFla5Sl7OJEgvA+yrpb0ShcpuYQWnUGLXvsVT0O62JFOj97dDTRE05xikvuXvtBuCLAF 8XGJSkmWMxWHeRpnwq0V4opob9iQ983xgJrHmEMP64CU7KGoaH7GChcLTkmNV3d2BWDu NcYW2OIcOBOONtZCLR+0StVegyHNt5z1vLyGaoMr+HPV7bY906HQYaa3jwq3B+NGBPEP djLB0pjKrC8fniE4hK3xf2it2ROtc7K1TZNXGVnz9HEiE4MDbM/SR2GThs6P7lMK7Z4h aGbg== X-Gm-Message-State: APjAAAWZ2ZcrK96xNPWF4LfwskOeRBtGaBEXmdsCr9xaneY5JnRTksHG iiAOSU9pVRApsUA9LFDbcuVFQ1gu X-Google-Smtp-Source: APXvYqxLe61kZmBpYmT9nvFFYz0NwlGpAcDywvPD4r0PifzaJRP/7jOrnWo+BCJqbFEwU2LFhX+rMA== X-Received: by 2002:a63:7444:: with SMTP id e4mr3982883pgn.398.1551835301645; Tue, 05 Mar 2019 17:21:41 -0800 (PST) Original-Received: from [192.168.2.183] (216-165-228-38.championbroadband.com. [216.165.228.38]) by smtp.gmail.com with ESMTPSA id c127sm328192pfg.133.2019.03.05.17.21.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Mar 2019 17:21:41 -0800 (PST) Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42b X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15358 Archived-At: 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