0

Spaces in path not escaped when doing Target → Run

It seems like spaces within the file path are not escaped when running from the Target → Run dropdown.

Here is the command that is being sent:

cd /Users/fm/Library/Containers/com.haskellformac.Haskell.basic/Data/Library/Autosave Information/Unsaved Haskell Document.hsproj/Temp; clear; /usr/local/lib/HaskellCLI-8.0.2-9.6-1/bin/runhaskell -- -fdefer-type-errors -fno-ghci-sandbox Main.hs

This is the output:

<no location info>: error: can't find file: Main.hs

Doing the following (escaping all spaces with a "\ ") works though:

cd /Users/fm/Library/Containers/com.haskellformac.Haskell.basic/Data/Library/Autosave\ Information/Unsaved\ Haskell\ Document.hsproj/Temp; clear; /usr/local/lib/HaskellCLI-8.0.2-9.6-1/bin/runhaskell -- -fdefer-type-errors -fno-ghci-sandbox Main.hs

Thanks,
Farhad

 

0 comments

Please sign in to leave a comment.