From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: j Newsgroups: gmane.lisp.guile.devel Subject: Re: feature request: simple hashbang for executable scripts Date: Mon, 21 Aug 2017 09:21:41 +0000 Message-ID: References: <20170819090037.GA12397@sph-desktop.fritz.box> Reply-To: jkal@posteo.eu NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1503307337 968 195.159.176.226 (21 Aug 2017 09:22:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2017 09:22:17 +0000 (UTC) User-Agent: Posteo Webmail Cc: guile-devel@gnu.org To: Chaos Eternal Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Aug 21 11:22:13 2017 Return-path: Envelope-to: guile-devel@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 1djiuO-00086g-Du for guile-devel@m.gmane.org; Mon, 21 Aug 2017 11:22:08 +0200 Original-Received: from localhost ([::1]:55677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djiuR-00065n-VV for guile-devel@m.gmane.org; Mon, 21 Aug 2017 05:22:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djiuA-00063e-Aq for guile-devel@gnu.org; Mon, 21 Aug 2017 05:21:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djiu5-0000ya-DM for guile-devel@gnu.org; Mon, 21 Aug 2017 05:21:54 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:36477) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1djiu5-0000vc-7m for guile-devel@gnu.org; Mon, 21 Aug 2017 05:21:49 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id E8F0E20B0F for ; Mon, 21 Aug 2017 11:21:42 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3xbSqn2p8qz10JG; Mon, 21 Aug 2017 11:21:41 +0200 (CEST) Mail-Reply-To: jkal@posteo.eu In-Reply-To: X-Sender: jkal@posteo.eu X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.67.36.66 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19263 Archived-At: that is correct. i wish there was a way to still use a simple one-line hashbang. maybe it would be possible to recognise a backslash-escaped newline for continuing the arguments to the interpreter? it does not seem like a commonly needed, or even necessary, feature to support multi-line arguments to interpreter directives in executable scripts with scsh block comments like this. by the way, my first example with the !# on the same line does not work. the !# apparently has to be on the second line. On 2017-08-21 07:04, Chaos Eternal wrote: > you can put more arguments in before !# > that is on-purpose. > > On Sat, Aug 19, 2017 at 5:01 PM j kalbhenn wrote: > >> scripts of other languages usually need just one line to specify the >> interpreter: >> >> #!/usr/bin/myinterpreter >> >> but with guile we have to add a final !# >> >> #!/usr/bin/guile !# >> >> or even >> >> #!/usr/bin/guile -s >> !# >> >> in my opinion, this is not ideal. from my perspective as a guile >> user this seems to be unnecessarily inconsistent and complicated.