Making Environment Changes Stick in Ruby Scripting
- by yar
Here is my script
#!/usr/bin/env ruby
if __FILE__ == $0
`cd ..`
end
which runs fine, but when it exits, I'm back where I started. How can I "export" the changes I've made to the environment?