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