Fix #3746 (part 3): use correct PATH separator on Windows

An IS-WINDOWS check would be too naive, because cygwin and git-bash use
: as the path separator, while powershell and cmd.exe use ;
This commit is contained in:
Henrik Lissner 2020-08-19 14:59:06 -04:00
parent 8402f8aecc
commit b4431dcd49
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -192,7 +192,7 @@ COMMAND, and passes ARGS to it."
concat (format "%s=%s \\\n"
(match-string 1 env)
(shell-quote-argument (match-string 2 env)))))
(format "PATH=\"%s:$PATH\" \\\n" (concat doom-emacs-dir "bin/"))
(format "PATH=\"%s%s$PATH\" \\\n" (concat doom-emacs-dir "bin/") path-separator)
"_postscript $@\n"))
(set-file-modes post-script #o700)))