D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 23446 - spawnProcess ignores the working directory
Summary: spawnProcess ignores the working directory
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86_64 Windows
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-31 01:55 UTC by torhu
Modified: 2022-10-31 03:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description torhu 2022-10-31 01:55:06 UTC
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 torhu 2022-10-31 02:14:28 UTC
> 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 torhu 2022-10-31 03:16:07 UTC
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.