Article View: comp.sys.amiga.tech
Article #911Re: Elinating the 'rx' from AREXX
From: misterx
Date: Tue, 15 Aug 1989 15:15
Date: Tue, 15 Aug 1989 15:15
29 lines
2013 bytes
2013 bytes
In article <SHADOW.89Aug13081959@pawl.rpi.edu> shadow@pawl.rpi.edu (Deven T. Corzine) writes:
>FALSE. If the magic number does not match, and there is no #!
>interpreter specified, the exec call assumes /bin/sh as an
>interpreter. The syntax errors you get are bourne shell errors, from
>the shell execve() created, NOT your current shell.
>For example, if you have a csh shell script, and are using csh,
>executing the csh script will try to interpret it with sh unless you
>begin the file with "#!/bin/csh". Only typing "source <file>" will
>make the current shell execute the commands.
NOT TRUE :-)
If you have a csh script and you are using the csh, a comment as the
first line will give you a csh interpretation. If you do not have a
comment as the first line you will invoke /bin/sh to execute the script,
which of course will fail since the script was a csh script (unless it
is echo hello :-) I will not generalize this behavior to all UNIX shells
, but I have found many that will pass a script without a comment on the
first line to /bin/sh; otherwise the {insert a name} shell will
interpret the script.
BTW, a comment is any line that begins with a #.
--
"One, you lock the target. Two, you bait the line. Three, you slowly
spread the net. And four, you catch the man."
UUCP: ...!gatech!uflorida!sun.ufnet.ufl.edu!misterx
Internet: misterx@sun.ufnet.ufl.edu | vishnu@pine.circa.ufl.edu
Technical Details
Message-ID:
<20737@uflorida.cis.ufl.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!cica!gatech!uflorida!sun.ufnet.ufl.edu!misterxReferences:
<1989Aug8.214011.3351@agate.berkeley.edu> <479@tw-rnd.SanDiego.NCR.COM> <89222.093949UH2@PSUVM> <19146@usc.edu> <276@nlgvax.UUCP> <SHADOW.89Aug13081959@pawl.rpi.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!cica!gatech!uflorida!sun.ufnet.ufl.edu!misterx From: misterx@sun.ufnet.ufl.edu ( ) Newsgroups: comp.sys.amiga.tech Subject: Re: Elinating the 'rx' from AREXX Message-ID: <20737@uflorida.cis.ufl.EDU> Date: 15 Aug 89 15:15:52 GMT References: <1989Aug8.214011.3351@agate.berkeley.edu> <479@tw-rnd.SanDiego.NCR.COM> <89222.093949UH2@PSUVM> <19146@usc.edu> <276@nlgvax.UUCP> <SHADOW.89Aug13081959@pawl.rpi.edu> Sender: news@uflorida.cis.ufl.EDU Reply-To: misterx@sun.ufnet.ufl.edu ( ) Organization: UFNET Lines: 29