[issue29635] os.chdir() acts like `cd -P` by default, it should offer an option to not follow symlinks

Fabien Dubosson report at bugs.python.org
Thu Feb 23 15:05:48 EST 2017


Fabien Dubosson added the comment:

> Most os functions are thin wrappers around system calls. There is no system call that works as 'cd' without '-P'.

I would like to believe in this, but then if `cd` is some bash internal, how does `/usr/bin/pwd -L` find it back?

> Since yours is the itch, I'm afraid you are going to have to be the one to figure out how this could be implemented :)

Once I'll have figured out how all this is working, maybe. Not sure it would me in my competencies though.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29635>
_______________________________________


More information about the Python-bugs-list mailing list