Running CSh scripts in Bash

Hi,

I have some csh scripts and I want to run them in .bashrc. I use these techniques without any success:

. test.csh
or
csh test.csh

The first one assumed that the scripts is a bash script, so showed me errors. The second one finished without giving proper result.

Can anybody offer a solution?

P.S.: I use SunOS 5.10 and GNU bash 3.00.16. My default shell is of course Bash.

Thanks in advance.

try:

csh /path/to/test.csh

Thanks for your suggestion. But it doesn't work.

What errors did you get when you were tring to run csh test.csh? Are you sure all of the things like syntax are correctly used in that script?

I got no errors.
If I change my current shell to CShell or TCShell, it would work properly. Since these scripts modify the local variables such as PATH, this effect will not appear in Bash, and this is my problem.

Does your csh script start with a shebang?

Yes! They have #!/bin/csh