the #! notation

afsipmh at cidsv01.cid.aes.doe.CA afsipmh at cidsv01.cid.aes.doe.CA
Thu Jan 17 03:27:05 AEST 1991


 Could someone clear up something for me?
 - If i put #! /bin/csh on the first line of a script
   the c shell will run it. If I put #! /bin/sh the
   Bourne shell will etc. 
 This is all well and good BUT does it assume that I am
 starting out in the c shell i.e. is the #! being interpreted
 by the c shell. What if my default were Bourne or ksh?
-- 
Pat Hertel                 Canadian Meteorological Centre
Analyst/Programmer         2121 N. Service Rd.        
phertel at cmc.aes.doe.ca     Dorval,Quebec             
Environment Canada         CANADA           H9P1J3



More information about the Comp.unix.shell mailing list