Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!pyramid!infmx!aland From: aland@informix.com (Colonel Panic) Newsgroups: comp.unix.sysv386 Subject: Re: sh and csh scripts (SCO ODT 1.0 with SCO Unix 3.2.1) Keywords: sh csh scripts Message-ID: <1991Jan29.230217.14825@informix.com> Date: 29 Jan 91 23:02:17 GMT References: <1991Jan23.225748.23327@sj.ate.slb.com> <8836@star.cs.vu.nl> <1991Jan25.195557.25955@kithrup.COM> Sender: news@informix.com (Usenet News) Organization: INFORMIX MCS ("I've fallen, and I can't get up!") Lines: 21 In article <1991Jan25.195557.25955@kithrup.COM> sef@kithrup.COM (Sean Eric Fagan) writes: >In article <8836@star.cs.vu.nl> rvdp@cs.vu.nl (Ronald van der Pol) writes: >> The whole world is using '#!', so SCO decided to use ':' instead. >Uhm... sorry. ':' as the first character of a bourne-shell script is the >*only* portable way to get to run under bourne shell. And the whole world >is *not* using '#!'. It was my understanding also that '#!' worked only for BSD. In BSD, you can say '#!anything', not necessarily just shells (e.g. awk scripts run great by saying '#!/bin/awk -f'). Now, the bonus question: is there an analogous directive for setting up a C shell script that will work in non-BSD systems ('#!/bin/csh' doesn't cut it in SVR3)? -- Alan Denney # aland@informix.com # {pyramid|uunet}!infmx!aland "Cut the crap, Camel Boy, or the 101st Airborne drops down your chimney and feeds you your own socks." - From Letterman's "Top 10 Things Overheard at the Baker/Aziz Meeting"