News for hackers. Stuff that matters.
Re:Unix Recovery Legend (1986) by schoen on Wednesday September 02, 2015 @01:47PM (#10160867)
The parent comment's explanation is exactly right (although I might not use "CWD" in this context, because a reader might mistakenly think the working directory is determined by an environment variable). As an example, try

python -c 'import os; os.chdir("/")'

Notice that the working directory of your shell is unaffected. :-)

Or:

bash -c 'export foo=bar'; echo $foo

Re:Unix Recovery Legend (1986) by Someone1234 on Wednesday September 02, 2015 @03:40PM (#10161464)
Those examples are trying to change the directory on the shell's child process, not on the shell itself.

That being said, aside from a kernel patch there is definitely no official way of doing it. This is the hacky way:

http://stackoverflow.com/questions/2375003/how-do-i-set-the-...

Re:Unix Recovery Legend (1986) by schoen on Wednesday September 02, 2015 @05:31PM (#10162012)
I meant for my examples just to illustrate that a child process can't change the working directory or environment of the parent process.