From: pere.noel@... (=?ISO-8859-1?Q?P=E8re_No=EBl?=) Date: 2006-12-11T20:40:07+09:00 Subject: Re: Dir.chdir("..") versus `cd ..` Vincent Fourmond wrote: > > When you're using backquotes, Ruby forks a shell and feeds it with the > command line given. With `cd ..`, you *do* change the current working > directory... for the forked shell. Not for the Ruby program... And the > forked shell dies immediately after the command is finished, so no way > of doing so. However, if you need to run only one command in another > directory, you might try: > > `cd ..; a_nice_command` yes, thanks for all (and to all answers) it's clear enough to me right now ))) -- P�re No�l