Script Writing
From Cassandra
Specify what shell to use.
The first line of a shell script should specify which shell should be used during execution. The format makes the line a comment. For example:
#!/bin/sh
or
#!/bin/csh
Typical shells include the Bourne shell (/bin/sh), C shell (/bin/csh), and the korn shell (/bin/ksh).
Foxboro is the worst about not specifying the shell and then expecting csh or sh depending on how you logged in.
What's more, the only statically-linked shell on the system is /bin/sh. This is important because the other (dynamically-linked) shells require /usr to be mounted. If root's shell is not /bin/sh (and on Foxboro boxes it is not), you may not be able to log in if /usr is corrupted.
