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
You won't be able to change the working directory of your shell.
When it executes ruby, it forks so you get a new environment, with a new working directory.