Robert K. wrote in post #1129351:
You probably have an old version of Ruby. I tested with 1.9.3
Wow, 1.9.3 works, thank you so much.
- more error checking (e.g. existence of test.csh)
- handle variables with values that contain a newline
- filter, e.g. include / exclude special variable names or by entries
already present in the current environment.
The last one is easy, just change one line
ENV[$1] ||= $2
This is really helpful for me, many thanks, Robert, very appreciated.