Answer by Sergiy Kolodyazhnyy for how to source csh script from bash...
The shebang line already takes care of that for you. When you run a script that has #! /bin/csh -f as first line, the system will recognize #! part as script, and load whatever interpreter is specified...
View ArticleAnswer by Xen2050 for how to source csh script from bash environment?
bash won't run all csh scripts perfectly. There may be some basic overlap, like very basic bash scripts will run in sh/dash, but if it fails to run in bash (test with bash [file] ) then it's a no-go....
View Articlehow to source csh script from bash environment?
I am using bash shell but some of the scripts that I need to source are in csh format. Can somebody tell how I can source csh scripts from bash shell? By sourcing I mean the sourced csh script should...
View ArticleAnswer by Shane for how to source csh script from bash environment?
I don't know csh but I have a similar requirement for ksh. My hack solution was toeval source <(ksh -c ". /path/to/my_script.kshenv|sort)I ran into issues with quoting and ended up putting in some...
View Article