If I’m writing a shell script and I want to “source” some external (c-)shell scripts to set up my environment, I can just make calls like this:
I want to replace a shell script that does this with a ruby script. Can I do a similar thing in the ruby script?
Just tried it with test_script.csh:
#!/bin/csh setenv HAPPYTIMES True
#!/usr/bin/env ruby system "~/test_script.csh" system "echo $HAPPYTIMES"
Sadly, no HAPPYTIMES as of yet.