Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!haven.umd.edu!mimsy!kong!njacobs From: njacobs@kong.gsfc.nasa.gov (Nick Jacobs - EOS) Newsgroups: comp.unix.programmer Subject: how to change parent environment? Message-ID: <1991May2.194624.21819@kong.gsfc.nasa.gov> Date: 2 May 91 19:46:24 GMT Followup-To: comp.unix.programmer Distribution: usa Organization: Goddard Space Flight Center Lines: 7 How do you change the current working directory in a program, so that when the program is invoked from a shell, the cwd stays changed after the program exits? You can't do it with chdir(2) of course, because that only affects the current process. Nick