From: Ken Feng Date: 2009-08-07T23:48:17+09:00 Subject: how to "source" a file? I have a bash file ~/.myenv that contains environmental variables like: export EDITOR=vi export FOO=bar ... How do I source this file from within a ruby script that starts like? #!/usr/bin/ruby I could source the file in bash before running the ruby script, but I prefer that the script do it, in case the user forgets. Thx. -Ken -- Posted via http://www.ruby-forum.com/.