Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!agate!tornado.Berkeley.EDU!et From: et@tornado.Berkeley.EDU (Eric Thompson) Newsgroups: comp.sys.att Subject: Does #!/bin/sh work w/tcsh? (was: Re: Shells for SYSV machines) Message-ID: <1991Jun17.225245.22105@agate.berkeley.edu> Date: 17 Jun 91 22:52:45 GMT References: <1991Jun17.202345.10281@agate.berkeley.edu> <1991Jun17.210456.13495@agate.berkeley.edu> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: ucb Lines: 10 On a related note, I've found that my tcsh binary (from ee.cornell.edu) doesn't pay any attention to a "#!/bin/sh" line at the top of a Bourne shell script. This is a pain. The workaround I've got going is to set $SHELL and $shell to /bin/sh. Then any scripts that are executed use the $shell variable. I'd rather if it would check the top of the script to see which shell to run--if it's possible, let me know how, please? :-) Thanks. Eric