how to change parent environment?

Nick Jacobs - EOS njacobs at kong.gsfc.nasa.gov
Fri May 3 05:46:24 AEST 1991


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



More information about the Comp.unix.programmer mailing list