From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.lisp.guile.devel Subject: Re: Proposal: allow "guile foo.scm" Date: Fri, 12 Nov 2004 10:19:37 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Message-ID: References: <1100197586.19830.125.camel@localhost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1100272840 25758 80.91.229.6 (12 Nov 2004 15:20:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Nov 2004 15:20:40 +0000 (UTC) Cc: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Nov 12 16:20:28 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CSdDw-0001JQ-00 for ; Fri, 12 Nov 2004 16:20:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSdMU-0000rQ-MN for guile-devel@m.gmane.org; Fri, 12 Nov 2004 10:29:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSdMQ-0000rD-W5 for guile-devel@gnu.org; Fri, 12 Nov 2004 10:29:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSdMQ-0000qo-82 for guile-devel@gnu.org; Fri, 12 Nov 2004 10:29:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSdMQ-0000ql-53 for guile-devel@gnu.org; Fri, 12 Nov 2004 10:29:14 -0500 Original-Received: from [129.22.104.46] (helo=mirapoint1.tis.cwru.edu) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CSdDc-0000g3-QA for guile-devel@gnu.org; Fri, 12 Nov 2004 10:20:09 -0500 Original-Received: from multivac.cwru.edu (multivac.ITS.CWRU.Edu [129.22.114.26]) by mirapoint1.tis.cwru.edu (MOS 3.5.4-GR) with SMTP id DDE25536; Fri, 12 Nov 2004 10:19:39 -0500 (EST) Original-Received: (qmail 18742 invoked by uid 500); 12 Nov 2004 15:20:01 -0000 Original-To: Greg Troxel In-Reply-To: (Greg Troxel's message of "12 Nov 2004 09:08:39 -0500") Mail-Copies-To: nobody Mail-Followup-To: Greg Troxel , Andy Wingo , guile-devel Original-Lines: 25 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4376 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4376 >> What do you think of allowing guile to be run as "guile foo.scm"? This has come up before. It may already be in CVS; I don't remember. Greg Troxel wrote: > But, I think your example fails to pass arguments to the guile > process. The kernel supplies the arguments. Try it with "#!/usr/bin/env echo". > Do you mean to include $0 $@? Why can't you do > > #! /usr/bin/env guile -s $0 "$@" > !# Only one argument (in this case, "guile") can be included in the #! line, or else you'll get different behavior on different platforms. Some would give you a single argument containing 'guile -s $0 "$@"'; some would give you a just "guile"; perhaps there are some that would give you "guile", "-s", "$0", and '"$@"' as separate arguments. But none of them will substitute the appropriate values for $0 and $@, because this line is interpreted by the kernel, not the shell. paul _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel