This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Arfrever
Recipients Arfrever, BreamoreBoy, benjamin.peterson, ezio.melotti, georg.brandl, hynek, larry, o11c, pitrou, python-dev, r.david.murray, serhiy.storchaka, swarecki, tzimmo
Date 2013-02-18.04:46:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361162775.95.0.275897891419.issue6975@psf.upfronthosting.co.za>
In-reply-to
Content
The above revisions have broken handling of arguments with >=2 "..".

Before these revisions:

$ cd /usr/bin
$ python3.2 -c 'import os; print(os.path.realpath(".."))'
/usr
$ python3.2 -c 'import os; print(os.path.realpath("../.."))'
/
$ python3.2 -c 'import os; print(os.path.realpath("../../.."))'
/
$ python3.2 -c 'import os; print(os.path.realpath("../../../.."))'

After these revisions:

$ cd /usr/bin
$ python3.2 -c 'import os; print(os.path.realpath(".."))'
/usr
$ python3.2 -c 'import os; print(os.path.realpath("../.."))'
/usr/bin
$ python3.2 -c 'import os; print(os.path.realpath("../../.."))'
/usr
$ python3.2 -c 'import os; print(os.path.realpath("../../../.."))'
/usr/bin
History
Date User Action Args
2013-02-18 04:46:16Arfreversetrecipients: + Arfrever, georg.brandl, pitrou, larry, benjamin.peterson, swarecki, ezio.melotti, r.david.murray, BreamoreBoy, python-dev, hynek, serhiy.storchaka, o11c, tzimmo
2013-02-18 04:46:15Arfreversetmessageid: <1361162775.95.0.275897891419.issue6975@psf.upfronthosting.co.za>
2013-02-18 04:46:15Arfreverlinkissue6975 messages
2013-02-18 04:46:15Arfrevercreate