[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re : Parent process



Hi,
Lokesh Setia wrote :
>Here `mc' was able to change the current working directory (cwd) of
>the parent process(bash). Can anybody explain this strange behaviour.

If you type
# type mc
you will notice that is a bash-function which calls /usr/bin/mc with
the "-P" option sending the last working directory to a variable
MC. Then, this function changes the current working directory to that.
Since the directory change is done by a bash function and not by the
/usr/bin/mc child process, there is nothing strange about it.
Bye,
Vimal


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/

------------------------------