I have the same problem as Michael. i.e. when I run the env_gate.csh file I get: source env_gate.csh bash: env_gate.csh: line 137: syntax error near unexpected token `else' bash: env_gate.csh: line 137: ` else' Anyone have a solution ??? Thanks