Bug 23446 – spawnProcess ignores the working directory

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2022-10-31T01:55:06Z
Last change time
2022-10-31T03:16:37Z
Assigned to
No Owner
Creator
torhu

Comments

Comment #0 by torhu — 2022-10-31T01:55:06Z
spawnProcess ignores the workDir argument, but spawnShell does not. I tried with both DMD 2.100.2 and 2.101.0-beta.1, same result. And when I check it in Process Monitor, I can see that the working directory is being accessed at all. But if I switch to using spawnShell, it is.
Comment #1 by torhu — 2022-10-31T02:14:28Z
> And when I check it in Process Monitor, I can see that the working directory is being accessed at all. is *not* being accessed at all
Comment #2 by torhu — 2022-10-31T03:16:07Z
Nevermind, I was just confused by the fact that spawnShell runs the command you give it in workDir. So I expected spawnProcess to do the same.