🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #1335

Re: Dealing with multiple scripting languages (was: Elinating the 'rx' from AREXX)

#1335
From: Deven T. Corzine
Date: Tue, 19 Sep 1989 10:50
33 lines
2186 bytes
In article <7782@cbmvax.UUCP>, jesup@cbmvax.UUCP (Randell Jesup) writes:

jesup>         This was discussed at length months ago on BIX in
jesup> amiga.dev/ suggestions.  The final more-or-less consensus was
jesup> that you should look for the string #!...!# (... being name of
jesup> interpreter) anywhere in the first line.

On 31 Aug 89 12:01:08 GMT,
peter@sugar.hackercorp.com (Peter da Silva) said:

peter> Isn't it nice when things fall together like this?

peter> I would recommend allowing it in more than just the first line,
peter> though, since some scripting languages like having the first
peter> line magic. Also, having some mechanism for passing extra
peter> arguments to the command interpreter would be useful.

I don't see that this is necessary.  It looks to me that the best
solution is very much like Unix with a slight change.  First line,
"#!" followed by interpreter location and optional args before script
arg.  Stdin of interpreter is set to the script file, starting at the
SECOND line.  That way, you don't have to worry about comment syntax.
(Granted, it could be a problem if you try to execute the script
without using the kernal call, then it would start at the first line
and comment syntax would matter.)

Deven
--
Deven T. Corzine        Internet:  deven@rpi.edu, shadow@pawl.rpi.edu
Snail:  2151 12th St. Apt. 4, Troy, NY 12180   Phone:  (---) --none--
Bitnet:  deven@rpitsmts, userfxb6@rpitsmts     UUCP:  uunet!rpi!deven
Simple things should be simple and complex things should be possible.
Technical Details
Message-ID: <SHADOW.89Sep19065156@pawl.rpi.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!rpi!pawl!shadow
References: <721@lpami.wimsey.bc.ca> <1989Aug29.031707.9022@agate.uucp> <7782@cbmvax.UUCP> <4149@sugar.hackercorp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!rpi!pawl!shadow
From: shadow@pawl.rpi.edu (Deven T. Corzine)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Dealing with multiple scripting languages (was: Elinating the 'rx' from AREXX)
Message-ID: <SHADOW.89Sep19065156@pawl.rpi.edu>
Date: 19 Sep 89 10:50:03 GMT
References: <721@lpami.wimsey.bc.ca> <1989Aug29.031707.9022@agate.uucp>
 <7782@cbmvax.UUCP> <4149@sugar.hackercorp.com>
Organization: Rensselaer Polytechnic Institute, Troy, NY
Lines: 33
In-Reply-To: peter@sugar.hackercorp.com's message of 31 Aug 89 12:01:08 GMT