Path: utzoo!attcan!uunet!mcvax!ukc!axion!fulcrum!tjo From: tjo@Fulcrum.BT.CO.UK (Tim Oldham) Newsgroups: comp.unix.questions Subject: Re: #! /bin/sh line in a shell script Message-ID: <82@cat.Fulcrum.BT.CO.UK> Date: 8 Feb 89 18:01:35 GMT References: <8575@orstcs.CS.ORST.EDU> <382@greens.UUCP> Reply-To: tjo@cat.UUCP (Tim Oldham) Organization: BT Fulcrum, Birmingham, England Lines: 17 In article <382@greens.UUCP> matthew@sunpix.UUCP ( Sun NCAA) writes: >In article <8575@orstcs.CS.ORST.EDU>, ghe@nucthy.physics.orst.edu (Guangliang He) writes: >> I have seen number of times that a shell script file begining with a line >> #! /bin/sh. What does that mean? > > [matthew explains about kernel handling of #! ] This isn't valid for all kernels ie versions and flavours of Unix. There's a problem here; some flavours use #! and some assume your $SHELL, unless the first line is blank, in which case they use /bin/sh. Such is my limited experience, anyway. -> Tim -- Tim Oldham ...!mcvax!ukc!axion!fulcrum!tjo or tjo@fulcrum.bt.co.uk #include "After five years in the institution, now I wanna be a good boy" - The Ramones