Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site usceast.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!dual!amd!decwrl!decvax!mcnc!ncsu!ncrcae!usceast!ted From: ted@usceast.UUCP (Ted Nolan) Newsgroups: net.bugs.2bsd Subject: # as /bin/sh comment : make UCB_SCRIPT work Message-ID: <2099@usceast.UUCP> Date: Sat, 4-Aug-84 02:35:18 EDT Article-I.D.: usceast.2099 Posted: Sat Aug 4 02:35:18 1984 Date-Received: Mon, 30-Jul-84 01:32:39 EDT Organization: Csci Dept, U of S. Carolina, Columbia Lines: 35 <#! /bin/chomp> If you have defined the UCB_SCRIPT option in the 2.9 kernal, you need to modify /bin/sh so that it knows about '#' for comments (otherwise it doesn't like the #! /bin/sh). This is quite easy to do, but the bourne shell is written in such an odd looking dialect of C that you could probably look all day for where to make the change. Fortunately, we run 4.2 on our vax, where the change has already been made. Grepping for # gives a lot of output, but I finally winnowed it down to the occurrence below. In the file word.c, you need to insert the 3 lines in the diff after WHILE (c=nextc(0), space(c)) DONE and before IF !eofmeta(c) $ diff word.c.orig word.c 25a26,30 > > IF c=='#' > THEN WHILE (c=readc()) ANDF c!=NL DONE > FI > Why the 2.9 people couldn't have done that I don't know. -- ------------------------------------------------------------------------------- Ted Nolan ...decvax!mcnc!ncsu!ncrcae!usceast!ted 6536 Brookside Circle ...akgua!usceast!ted Columbia, SC 29206 ("We pray for one last landing on the globe that gave us birth..") -------------------------------------------------------------------------------