Bug 19069 – "/..".buildNormalizedPath returns "/" instead of throwing; not documented

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2018-07-07T10:23:24Z
Last change time
2024-12-01T16:34:02Z
Assigned to
No Owner
Creator
Timothee Cour
Moved to GitHub: phobos#10345 →

Comments

Comment #0 by timothee.cour2 — 2018-07-07T10:23:24Z
rdmd --eval '"/..".buildNormalizedPath.writeln' /
Comment #1 by bugzilla — 2019-12-25T11:46:48Z
I'm not sure, if this is different on Mac OS, but on linux, there exists .. in the root directory, which just leads to /. So at least on linux this is correct behaviour.
Comment #2 by robert.schadek — 2024-12-01T16:34:02Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10345 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB