I\'d like to change the pwd of the current shell from within a ruby script. So:
> pwd /tmp > ruby cdscript.rb > pwd /usr/bin
This
Stumbled across this while searching to do the same thing.
I was able to solve this by running multiple statements within the backticks.
'cd #{path} && && cd ..'