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 Danya.Alexeyevsky
Recipients Danya.Alexeyevsky, brianmsheldon, emilyemorehouse, jreese, paul.moore, pitrou, steve.dower, tim.golden, zach.ware
Date 2020-04-29.11:12:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588158769.42.0.164383179637.issue33428@roundup.psfhosted.org>
In-reply-to
Content
I can reproduce the bug with Linux and python 3.7.5:

```
Python 3.7.5 (default, Apr 19 2020, 20:18:17) 
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pathlib import Path
>>> Path('a/b').mkdir(parents=True)
>>> Path('c/d').mkdir(parents=True)
>>> Path('a/c').symlink_to('../c')
>>> Path('e').symlink_to('c')
>>> list(Path('.').rglob('*'))
[PosixPath('e'), PosixPath('c'), PosixPath('a'), PosixPath('c/d'), PosixPath('a/c'), PosixPath('a/b')]
```

Expected result:

```
[PosixPath('e'), PosixPath('e/d'), PosixPath('c'), PosixPath('a'), PosixPath('c/d'), PosixPath('a/c'), PosixPath('a/c/d'), PosixPath('a/b')]
```
History
Date User Action Args
2020-04-29 11:12:49Danya.Alexeyevskysetrecipients: + Danya.Alexeyevsky, paul.moore, pitrou, tim.golden, jreese, zach.ware, steve.dower, emilyemorehouse, brianmsheldon
2020-04-29 11:12:49Danya.Alexeyevskysetmessageid: <1588158769.42.0.164383179637.issue33428@roundup.psfhosted.org>
2020-04-29 11:12:49Danya.Alexeyevskylinkissue33428 messages
2020-04-29 11:12:49Danya.Alexeyevskycreate