From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user Subject: Re: env, -l and command line arguments Date: Sun, 21 Feb 2021 12:13:25 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8499"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "guile-user@gnu.org" To: Formbi Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Feb 21 05:13:54 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lDg82-000270-DW for guile-user@m.gmane-mx.org; Sun, 21 Feb 2021 05:13:54 +0100 Original-Received: from localhost ([::1]:41296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDg81-0004Ai-Df for guile-user@m.gmane-mx.org; Sat, 20 Feb 2021 23:13:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDg7p-00049N-34 for guile-user@gnu.org; Sat, 20 Feb 2021 23:13:41 -0500 Original-Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:35428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDg7m-0006uZ-R4 for guile-user@gnu.org; Sat, 20 Feb 2021 23:13:40 -0500 Original-Received: by mail-lj1-x22b.google.com with SMTP id a17so45166350ljq.2 for ; Sat, 20 Feb 2021 20:13:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7JFg6oM8hSoBwJgUJKUFWwkGXL/lK7D4UJ7jOL/9L0I=; b=sq3RbPT+3XwiJXTldI4NXi8UD0iI6BOPnucjw9vcFIyxpXbLhwdnhXVG6DrjHBwhyc E9Qr45Fx1B7p1YkNtUsUsm2rDD0hXK065GPce1zEdiIAxQZbfysRa9GRto71py/0ZoyT Q4MEjtZ/mPhsCesFbIH9m7s8+rOiWJV4T8w1BrTYCD8pUF1/WDwd6u9oIycorVLMt7cq 8YmPEk6Az1pFjk2VeFgMA4VZ0uKJYPEMcYDIK8UvuB8p3EGVV2nszRvizY3iMa9RMj9T Y7/9LMSvcwXisXnUt/g6ftu6gf3G7anJ0WTEybkIIpZhsckUOHn4FSeTfGHFOcQDg2vw aoqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7JFg6oM8hSoBwJgUJKUFWwkGXL/lK7D4UJ7jOL/9L0I=; b=kopT740xm84aeTS7eXlday64eaw+xDeYzWjwWkkz8pJQsD8+MYcXCKRYHWjPOH9YUX saX1HQ6zwiT9vyYItFn9ZkBCMUhVsHVzca+Mq8VKvNwuRNdVVEgNkwhQ4rpePMPHeIcZ vUU2JkKZ3BALorq2I+Dh/4znFi8OruRLjMB9Zmbal22nj3aIfL57qFgLRgWRIo8rOjVq 2BMiMciLicPBofHaYpIPJsI7UpyU7NjkfVteTrXp6OkE2/yH2w47/7pqCUgLH6b5dFcQ +x7kP/CaCkc6tfsYZ79wf9S0eB/F9fEFQZmNzcRTwky+VDP4Z7A7JQyZHABkeSRK/ohs Hp+g== X-Gm-Message-State: AOAM533/yWJZR1hqXFGHddLRTZAqoVTliHg1a5S2FsDWAcW5SNe1sxPq Yo+WY9Pj7xioWdwlNnyL4rdAnBZdK43DPdy6umMlckxGdfivuA== X-Google-Smtp-Source: ABdhPJzGuOQJ9MNLAjwGQstB+bJEUFwng1geDsUwo9if4Vaatf3ZDeNXkntjmhze8I2SdYQY93M4is/n41PByD+6ykI= X-Received: by 2002:a19:b08:: with SMTP id 8mr10577500lfl.269.1613880816996; Sat, 20 Feb 2021 20:13:36 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=nalaginrut@gmail.com; helo=mail-lj1-x22b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17290 Archived-At: Hi Fombi! I find it's not easy to understand what you want to do, could you give us an example? Best regards. On Sun, Feb 21, 2021 at 7:43 AM Formbi wrote: > Hi > > I'd like to make a script and be able to jump into the REPL if needed (fo= r > example if =C2=AB--repl=C2=BB is not passed, =C2=AB(exit)=C2=BB is run). = I also run Guile > through env -S, because I'm on Guix and I wanna make the script portable. > > However, I can't find an easy way to do it. When I use =C2=AB-l=C2=BB and= pass some > command-line arguments to the script, Guile crashes because it interprets > the arguments as files to load. When I use =C2=AB-l --=C2=BB, it crashes = because it > can't find the =C2=AB--=C2=BB file. When I use =C2=AB-- -l=C2=BB, it does= n't load the file. > Even weirder to me is the fact that if I just put =C2=AB(exit)=C2=BB in t= he script, > Guile doesn't crash. > > I kinda managed to get the REPL functionality using some Bash shenanigans > made by someone else, but shouldn't there be an easier way? Or does it > exist, but I haven't stumbled upon it? > >