Skip to content

Commit 0b89979

Browse files
authored
Merge pull request #1761 from EuanParr/pr-fix-path-argument-in-compile
Fix compilation command to handle whitespace in file path
2 parents 3332050 + 0faf9f1 commit 0b89979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haskell-compile.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ base directory for build tools, or the current buffer for
229229
((null edit) default)
230230
((eq edit '-) alt)
231231
(t (compilation-read-command default))))
232-
(command (format template local-dir-or-file))
232+
(command (format template (shell-quote-argument local-dir-or-file)))
233233
(dir (if (directory-name-p local-dir-or-file)
234234
local-dir-or-file
235235
default-directory))

0 commit comments

Comments
 (0)