Question

When I tried including a file on Unix (and Windows) it won't work when it includes spaces. For example, these won't work:

include ~/Space Folder/test.fs
include ~/Space\ Folder/test.fs
include "~/Space Folder/test.fs"
include "~/Space\ Folder/test.fs"
include C:\Users\Lim Ding Wen\test.fs
include C:\Users\Lim/ Ding/ Wen\test.fs
include "C:\Users\Lim Ding Wen\test.fs"

So.. is there a way to make this work? Thanks!

Was it helpful?

Solution

Use the included word :

s" My File With Spaces.fs" included

Tilde expansion will probably not work (haven't tested). If you do not specify an absolute path, then the file needs to be in the GFORTHPATH

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top