Hi,

At Sun, 27 Oct 2002 11:27:38 +0900,
Christian Szegedy wrote:
> Does someone have an idea, how could I change the
> working directory by a Ruby script?

Fundamently, child processes can never modify directly parent
process'es environment.  Unix process model prohibits it.  You
can just receive child's output and cd by the shell process
itself.

foo() {eval `ruby somescript`}

# somescript
puts "cd #{directroy}"

-- 
Nobu Nakada