Re: running shell scripts properly

Heidi Schellman (schellma@fsgi02.FNAL.GOV)
Sat, 28 Nov 1998 08:48:32 -0600 (CST)

Thanks Art, your suggestion helped. Putting #!/usr/bin/env csh instead
of #!/usr/local/bin csh at the top of my scripts cured them. I guess the
'problem' is with novice users, emacs and the fnal red-hat install. creation
of X.csh via emacs X.csh puts /usr/local/bin csh at the top of files by
default. But there is no /usr/local/bin csh on FNAL linux.

Those like me who can never remember what to put at the top of a script rely
on emacs to do it for us. I guess the way to idiot-proof this is either to fix
emacs, disable the feature in emacs or put /usr/local/bin csh into the fnal
Red-Hat so that it mirrors the behavior on other FNAL machines.

Thanks, Heidi