Bug 22948 – std.stdio.File doesnt open ~ files

Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-03-27T22:24:37Z
Last change time
2022-07-08T15:55:18Z
Assigned to
No Owner
Creator
crazymonkyyy

Comments

Comment #0 by crazymonkyyy — 2022-03-27T22:24:37Z
```d File("~/foo") ``` expected: correctly finds the foo, in the users home folder, reacting to ~ as bash would
Comment #1 by schveiguy — 2022-07-08T15:55:18Z
Using shell expansion is not done by default for strings. Use https://dlang.org/phobos/std_path.html#expandTilde if you want expansion of the tilde.