diff --git a/os_windows.go b/os_windows.go index 306ffa6e..ed6f05ad 100644 --- a/os_windows.go +++ b/os_windows.go @@ -147,9 +147,11 @@ func exportFiles(f string, fs []string, pwd string) { } envFiles := strings.Join(quotedFiles, gOpts.filesep) + envPWD := fmt.Sprintf(`"%s"`, pwd) + os.Setenv("f", envFile) os.Setenv("fs", envFiles) - os.Setenv("PWD", pwd) + os.Setenv("PWD", envPWD) if len(fs) == 0 { os.Setenv("fx", envFile)