Fontforge 脚本语言是否只接受脚本字符串的单引号来自命令行

问题描述

根据我的经验,Evoking Fontforge 脚本应该包含在单引号字符串中,以使其工作。我找不到有关此的任何信息,但对我而言(在 Debian 系统上)以下脚本(用双引号括起来)

fontforge -lang=ff -c "Open($1);Print($0)" haydn-11.svg

返回

copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Based on sources from 11:21 UTC 24-Sep-2017-ML-D.
 Based on source from git with hash: 
Open: Wrong number of arguments
Called from...
 <command-string>: line 1

而当我用单引号替换外引号时

$ fontforge -lang=ff -c 'Open($1);Print($0)' haydn-11.svg 

copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Based on sources from 11:21 UTC 24-Sep-2017-ML-D.
 Based on source from git with hash: 
Open($1);Print($0)

它按预期运行。从终端运行时,这是 Fontforge 脚本的正常行为吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)