[issue38246] pathlib.resolve and .absolute leave trailing tilde in home expansion

2020-03-26 Thread Andrea Bergonzo
Change by Andrea Bergonzo : -- nosy: +andybergon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue38246] pathlib.resolve and .absolute leave trailing tilde in home expansion

2019-09-21 Thread Eryk Sun
Eryk Sun added the comment: Only Path.expanduser() special cases tilde as a POSIX shell would. Otherwise "~" is not a reserved filename character in POSIX. Path('~') is a file named "~" that's relative to the current working directory. By coincidence the working directory is the user's home

[issue38246] pathlib.resolve and .absolute leave trailing tilde in home expansion

2019-09-21 Thread Infrasonics
New submission from Infrasonics : `Path('~').resolve()` gives `PosixPath('/home/youruser/~')`. Same problem for `.absolute`, yet `.expanduser` works correctly. -- components: Library (Lib) messages: 352954 nosy: Infrasonics priority: normal severity: normal status: open title: pathlib.r