From b4431dcd49ecf74de23463dfa15952462320dd45 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 19 Aug 2020 14:59:06 -0400 Subject: [PATCH] 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 ; --- core/core-cli.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-cli.el b/core/core-cli.el index 94089315a..aba69fc6d 100644 --- a/core/core-cli.el +++ b/core/core-cli.el @@ -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)))