2009/11/24 Rudolf Sykora <rudolf.syk...@gmail.com>:
> If I have an rc script and I don't specify any rfork in it, then the
> namespace and the environment should be shared.
<snip>
> But it does not work like that, thanks to some
> caching or what. How should the 'b' script, or whatever, be corrected so
> that it work?

 Rc forks a new process for every [non builtin] command it runs. To
avoid such, use the . command to source the script instead of running
it.

> Further, I am now a bit puzzled about whose property the 'current directory'
> is. Why isn't the directory changed to 'c' after runing either the 'a' or
> 'b' script? Is this always a local property of each shell?

 Each process has a current dir. I don't think it is ever shared between them.
-sqweek

Reply via email to