This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bash won't hand off to tcsh


Hi,

  I've got lots of csh shell scripts.  To my joy today I found a copy of
tcsh.exe which I put in /bin.  (I even copied it to csh.exe at one point).

  However if I run a script like setfoo:

#!/bin/csh -f
setenv foo FooIsSet
echo $foo
exit(0)

  from a bash shell, bash insists on trying to interpret the script itself
instead of handing it off to the command interpreter I'm specifying on the
first line.  As you might imagine it doesn't deal with setenv too well.

  (The script runs fine if I exec tcsh first and then run it).

  Am I missing something simple?

  Does bash not allow other shells to muscle in on it's turf?

Thanks for any help.  I don't relish rewriting over 200 scripts.

--jp
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]