From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: Auto-detect Guile in a text editor Date: Tue, 23 Oct 2018 05:58:27 -0700 Message-ID: References: <1602509.cW4D3zthmT@aleksandar-ixtreme-m5740> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1540299426 22463 195.159.176.226 (23 Oct 2018 12:57:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2018 12:57:06 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Oct 23 14:57:02 2018 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEwF0-0005e5-N1 for guile-user@m.gmane.org; Tue, 23 Oct 2018 14:56:58 +0200 Original-Received: from localhost ([::1]:41148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEwH7-0007UH-8D for guile-user@m.gmane.org; Tue, 23 Oct 2018 08:59:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEwGa-0007T5-GC for guile-user@gnu.org; Tue, 23 Oct 2018 08:58:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEwGV-0005lW-CC for guile-user@gnu.org; Tue, 23 Oct 2018 08:58:36 -0400 Original-Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:34684) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gEwGV-0005kV-5N for guile-user@gnu.org; Tue, 23 Oct 2018 08:58:31 -0400 Original-Received: by mail-pf1-x42d.google.com with SMTP id f78-v6so644588pfe.1 for ; Tue, 23 Oct 2018 05:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=IBNjkxC3rQKTYBBN5yilgG1h4lx0HzK2x6YaY8hZ+7k=; b=Dk+VpUej+IzNAGdqxJzkyGg9PhQq81UVUcRoPh3XQCnUFtzpGh8iyUxYC7TbRt+3KZ bDZO9ctMlDPniqG8gT8ZzJkYP5skRrweYO9d5gAAV9643dwHjJwZV82393Wa+D8BbA8H w5Dcw80KY9aqgrBNqfQb4rIq/txF9qxzCUo/c/B4t7RZNmzzZdoSg84UtcpDMydA8F2r ETb0VUecWmGhRktGKinjySpPUE75cbIcuVrtTIkbBjrZEGzD/DHng2vpTpef3yvP+QDL wMV33rQmNJpTl31p9gwSdrnpCxdwitYAa04rFmxKkgQxjGxHfqNzvqhsfmSIsQM3ldfb Zs5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=IBNjkxC3rQKTYBBN5yilgG1h4lx0HzK2x6YaY8hZ+7k=; b=s5yuU8hgyeS2yCd/o3b9KGXFbdIrNdG7nLVrcnKCOnvE54dqT9XHqKqk8/xLa5mzRn 9y++qJ7dBfO+6f7JMPuhpwFH/2mEUm3IXP4NNjCFNjJHGtorikL8jGxAOBFg8P0ocxvS lvWmnizcep7mG1suVsnVn2iOtimlquRtieXFrF4oJ5RqlG2C9+aHBqtgYsAFsv16Y1nP VR2GILUJZyOH75JCKYW5vn+xL0ezXTxet7LH8zgDrrvzeQrO8feiKCaja1OK3AI0EA4p AZaanAiWP64bbiV5qAur63nmMCBDV2IKhyw1FdHO0g59MbJN3wImQ0oKwwgCprQbtLq4 IPCw== X-Gm-Message-State: ABuFfohPCz4Jv1VIylUO73ZHJASFAXFNKmSMVojbMK6w5il1MCVkUzgr t5jRTOf+TZemMF3lMuO+OD9Ae2q5 X-Google-Smtp-Source: ACcGV60s/um835c+uCDr8odfa4hWSRisLXSqU3tUlu4IdCPHKmsWHlK3PcSrw7Y6iv/UVRMXUUu81g== X-Received: by 2002:a62:5441:: with SMTP id i62-v6mr49940168pfb.155.1540299508878; Tue, 23 Oct 2018 05:58:28 -0700 (PDT) Original-Received: from [192.168.2.183] (216-165-229-229.championbroadband.com. [216.165.229.229]) by smtp.gmail.com with ESMTPSA id t11-v6sm3417177pgn.38.2018.10.23.05.58.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 05:58:28 -0700 (PDT) In-Reply-To: <1602509.cW4D3zthmT@aleksandar-ixtreme-m5740> 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::42d 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:14944 Archived-At: On 10/23/18 4:07 AM, HiPhish wrote: > And while I'm at that topic, what is the proper way of writing a shebang when > I don't know where Guile is installed to? For example, the Guile manual > frequently uses > > #!/usr/local/bin/guile > > but what if I have Guile installed via Guix and it is somewhere in my Guix > store? A common solution is to abuse env: > > #!/usr/bin/env guile > > But now I cannot pass arguments (like '-s') to Guile, because everything > following the first space will be treated as one argument to 'env'. Is there a > solution or am I just overthinking things? > Sometime I need to do shell processing, so I use   #!/bin/sh   exec guile $0 "$@"   !# (define foo 1) ...