From: nobu.nokada@... Date: 2002-10-27T11:46:02+09:00 Subject: Re: Shell <-> Ruby question 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