如何在GForth(GNU Forth)中的文件名中包含空格?

时间:2013-04-12 05:07:11

标签: windows macos unix forth gforth

当我尝试在Unix(和Windows)上包含一个文件时,它包含空格时将无效。例如,这些不起作用:

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"

那么..有没有办法让这项工作?谢谢!

1 个答案:

答案 0 :(得分:2)

使用included字词:

s" My File With Spaces.fs" included

Tilde扩展可能不起作用(尚未测试)。如果未指定绝对路径,则该文件必须位于GFORTHPATH