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



当我尝试在Unix(和Windows)上包含文件时,它不会在包含空格时工作。例如:

include ~/Space Folder/test.fs
include ~/Space Folder/test.fs
include "~/Space Folder/test.fs"
include "~/Space Folder/test.fs"
include C:UsersLim Ding Wentest.fs
include C:UsersLim/ Ding/ Wentest.fs
include "C:UsersLim Ding Wentest.fs"

. .有办法解决这个问题吗?谢谢!

使用included字:

s" My File With Spaces.fs" included

波浪扩展可能无法工作(尚未测试)。如果不指定绝对路径,则该文件需要位于GFORTHPATH

相关内容

  • 没有找到相关文章