Subject: Re: Stupid question of the day.
To: None <seebs@plethora.net>
From: John Darrow <John.P.Darrow@wheaton.edu>
List: netbsd-help
Date: 09/20/2001 19:59:33
Peter Seebach <seebs@plethora.net> wrote:
>I have a program called "mymenu" which is a wrapper around 9menu to make it
>more tractable.
>
>If I run "mymenu t", it runs "mymenu" and gives it the argument "t".
>
>If I run "./t", it runs t through /bin/sh.
>
>The first line is:
>#!/home/seebs/bin/mymenu
>
>What am I likely to be missing?

I'm gonna bet that your /home/seebs/bin/mymenu is itself a shell
script.

For technical reasons, only a real binary executable can be the
interpreter for a script - another script won't work.  The explanation
behind this gets into technical details about how a #! script is
actually executed, but others would know those details better than I.

jdarrow

-- 
John Darrow - Senior Technical Specialist               Office: 630/752-5201
Computing Services, Wheaton College, Wheaton, IL 60187  Fax:    630/752-5968
Pager via email: 6303160707@alphapage.airtouch.com      Pager:  630/316-0707
Email:     John.P.Darrow@wheaton.edu