Path: utzoo!attcan!uunet!ginosko!husc6!psuvax1!psuvm!uh2
From: UH2@PSUVM.BITNET (Lee Sailer)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Elinating the 'rx' from AREXX
Message-ID: <89222.093949UH2@PSUVM>
Date: 10 Aug 89 13:39:49 GMT
References: <1989Aug8.214011.3351@agate.berkeley.edu> <479@tw-rnd.SanDiego.NCR.COM>
Organization: Penn State University - Center for Academic Computing
Lines: 17

On IBM's CMS (the home of the original REXX) there is a kludgy but simple
convention for distinguishing REXX files from the older EXEC files which
could be used to distinguish AREXX from AmigaDOS scripts, too.  On CMS,
if the script starts with a comment on line one, then it is REXX.  This
is perhaps similar to the UNIX convention of putting (something like)
#!/bin/sh at the beginning of a script to tell the C shell to use the
Bourne shell, instead.

So, in short:

If the first line of an AmigaDOS script is

/* AREXX */

then AmigaDOS hands the script over to AREXX and bails out.

                                                             lee