quote PWD variable on windows

cc #740
This commit is contained in:
Gokcehan committed 2022-01-26 17:22:46 +03:00
1 parent 94e06201f9
commit 1bb7a17c81
1 file changed
+3 -1
+3 -1
View File
@@ -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)