Vlad Galu
12/11/2006 11:09:00 AM
On 12/11/06, Père Noël <pere.noel@laponie.com.invalid> wrote:
> i discovered this wornig that :
>
> `cd ..` as no effect but :
>
> Dir.chdir("..")
>
> as the right effect, why isn't the first not working ?
Because "cd .." executes in a child process. So the cwd change only
takes place in it.
>
> i'm surprised because i'm doing a lot using back quotes )))
>
> `rsync ... ` OK
> `rm -rf / ` OK ;-)
> and the like...
>
> --
> Père Noël
>
>
--
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.