home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!elroy.jpl.nasa.gov!news.claremont.edu!ucivax!news.service.uci.edu!cerritos.edu!arizona.edu!arizona!amethyst!organpipe.uug.arizona.edu!afthree.as.arizona.edu!tom
- Newsgroups: comp.unix.bsd
- Subject: Re: 386BSD #!/bin/csh
- Message-ID: <1992Sep11.184929.2343@organpipe.uug.arizona.edu>
- From: tom@afthree.as.arizona.edu (Thomas J. Trebisky)
- Date: 11 Sep 92 18:49:29 GMT
- Sender: news@organpipe.uug.arizona.edu
- References: <TRI.92Sep9011202@supergirl.hut.fi> <1992Sep9.171327.20998@gateway.novell.com>
- Distribution: comp
- Organization: University of Arizona, Tucson, AZ
- Lines: 20
-
- Timo.Rinne@hut.fi writes:
- >386bsd 0.1 doesn't seem to respect #! in beginning
- >of the shell scripts, Anyone knows why? Fixes?
-
- I am kinda shooting from the hip, but I think this kind of thing gets
- handled in kern/kern_execve.c, you might want to take a look there.
-
- I expect some some simplification was done in the free version rewrite.
- The exec header is read and magic number is checked against ZMAGIC and
- that is it. You might want to hack it and check the first 16 bits
- against "#!" and figure out how to invoke the interpreter of your
- choice.
-
- If "#" gets you to the sh in the current version, it is a mystery to me
- how it works, unless "sh" itself is handling it.
- --
- Tom Trebisky ttrebisky@as.arizona.edu
- ...."There's no sense in being precise when you don't even
- .... know what you're talking about."
- - John von Neumann
-