Try paste your .cshrc file -- likely it contains something suspect, but only when inheriting TM's environment, will it manifest itself in
a problem. One example could be the use of $PATH without quotes.
There you go. Adding quotes to a specific line solved the problem...