title: how to source a csh script in bash to set the environment
body: <p>We have Oracle running on Solaris, and the shell is by default csh. So the login script sets the oracle_home, oracle_sid in csh also. But I don't like csh and want to use bash to do my work. So how to source the csh login script in bash?</p>
  
  <p>e.g, the following is what in the .cshrc file. And when use bash, I'd like use these variables. One way is to copy the variables again and use bash command, such as export ORACLE_SID=TEST. But doing so will require us to maintain two copies of the files. And when we change the database name, or upgrade the database, I need to maintain the bash login file separately. It's nice to just use something like </p>
  
  <p>source .cshr in bash, but it doesn't work.</p>
  
  <pre>
  setenv ORACLE_SID TEST
  setenv ORACLE_HOME /oracle/TEST/home/products/10204
  setenv EPC_DISABLED TRUE
  setenv MANPATH /usr/local/man:/usr/share/man
  setenv EDITOR vi
  setenv LD_LIBRARY_PATH $ORACLE_HOME/lib:/usr/sfw/lib/64
  setenv NLS_LANG AMERICAN_AMERICA.UTF8
  setenv NLS_DATE_FORMAT "DD-MON-RR"
  </pre>