home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / biz / sco / general / 4798 < prev    next >
Encoding:
Text File  |  1992-12-22  |  2.0 KB  |  42 lines

  1. Newsgroups: biz.sco.general
  2. Path: sparky!uunet!mcsun!ieunet!tcdcs!unix1.tcd.ie!cbuckley
  3. From: cbuckley@unix1.tcd.ie (Colm Buckley)
  4. Subject: Re: Changing SCO kernel to accept # !/bin/sh instead of :
  5. Message-ID: <cbuckley.725060800@unix1.tcd.ie>
  6. Sender: usenet@cs.tcd.ie (NN required at ashe.cs.tcd.ie)
  7. Nntp-Posting-Host: unix1.tcd.ie
  8. Organization: Trinity College, Dublin
  9. References: <4542@tiamat.fsc.com> <1992Dec18.224803.12806@clpd.kodak.com>
  10. Date: Tue, 22 Dec 1992 21:46:40 GMT
  11. Lines: 29
  12.  
  13. >>>     I saw a posting a while ago on how to modify the SCO kernel to
  14. >>> accept # !/bin/sh notation on shell scripts instead of just :.  Could
  15. >>> someone re-post this to me or tell me how?  
  16. >>> 
  17. >> On a SCO Unix 3.2v4.0 (or above) system (which includes ODT 2.0), make
  18. >> sure the following line exists in /etc/conf/pack.d/kernel/space.c and
  19. >> rebuild your kernel:
  20. >>
  21. >> int hashplingenable  = 1;   /* set 1 if "#!" recognized by exec */
  22.  
  23. You can have some problems with this, if you are using shells other than sh
  24. - SCO's incredibly broken csh does weird things if the SHELL environment
  25. variable and/or the alias for "shell" aren't set up properly. I don't use
  26. it anymore, so I can't remember exactly what happens - however the problem
  27. was that all the standard executable shell scripts use the ':' instead of
  28. the '#! /bin/sh' system. I ended up writing a C program (could easily have
  29. been a shell script either) which changed the first line of these files from
  30. ':' to '#! /bin/sh'.
  31.  
  32. -- 
  33. Colm.
  34. +-------------------------------------+----------------------------------+
  35. | Colm Buckley                        | "My program doesn't work."       |
  36. | Department of Computer Science,     | "You forgot the semicolon."      |
  37. | Trinity College, Dublin 2, Ireland  | "But..."                         |
  38. |                                     | "Line 376. Check."               |
  39. | cbuckley@unix1.tcd.ie               | "But..."                         |
  40. | CBUCKLEY@vax1.tcd.ie                | "Trust me."                      |
  41. +-------------------------------------+----------------------------------+
  42.