home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / bsd / 5547 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.4 KB

  1. 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
  2. Newsgroups: comp.unix.bsd
  3. Subject: Re: 386BSD #!/bin/csh
  4. Message-ID: <1992Sep11.184929.2343@organpipe.uug.arizona.edu>
  5. From: tom@afthree.as.arizona.edu (Thomas J. Trebisky)
  6. Date: 11 Sep 92 18:49:29 GMT
  7. Sender: news@organpipe.uug.arizona.edu
  8. References: <TRI.92Sep9011202@supergirl.hut.fi> <1992Sep9.171327.20998@gateway.novell.com>
  9. Distribution: comp
  10. Organization: University of Arizona, Tucson, AZ
  11. Lines: 20
  12.  
  13. Timo.Rinne@hut.fi writes:
  14. >386bsd 0.1 doesn't seem to respect #! in beginning
  15. >of the shell scripts, Anyone knows why? Fixes?
  16.  
  17. I am kinda shooting from the hip, but I think this kind of thing gets
  18. handled in kern/kern_execve.c, you might want to take a look there.
  19.  
  20. I expect some some simplification was done in the free version rewrite.
  21. The exec header is read and magic number is checked against ZMAGIC and
  22. that is it.  You might want to hack it and check the first 16 bits
  23. against "#!" and figure out how to invoke the interpreter of your
  24. choice.
  25.  
  26. If "#" gets you to the sh in the current version, it is a mystery to me
  27. how it works, unless "sh" itself is handling it.
  28. --
  29.     Tom Trebisky    ttrebisky@as.arizona.edu
  30. ...."There's no sense in being precise when you don't even
  31. .... know what you're talking about." 
  32.                        - John von Neumann  
  33.