我正在尝试使用变量编写一个简单的bash脚本,以便将来可以轻松替换文件位置。但我必须在这里遗漏一些东西。我在这里有这个bash命令:
/Applications/Wakanda\ 1.1.4\ Enterprise/wakanda-enterprise-server.app/Contents/MacOS/wakanda-enterprise-server /Users/steveduisterhof/Desktop/GwS_Jeannie1.1.3/Jeannie\ Solution/Jeannie.waSolution
这样可行,但是当我尝试执行此bash脚本时:
WAKSERV=/Applications/Wakanda\ 1.1.4\ Enterprise/wakanda-enterprise-server.app/Contents/MacOS/wakanda-enterprise-server
JEANNIESOL=/Users/steveduisterhof/Desktop/GwS_Jeannie1.1.3/Jeannie\ Solution/Jeannie.waSolution
“$WAKSERV” “$JEANNIESOL”
它给出错误
Mac-Pro:~ steveduisterhof$
/Users/steveduisterhof/Desktop/startJeannie ; exit;
/Users/steveduisterhof/Desktop/startJeannie: line 8: “??: command not found
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
我对此很陌生,所以它可能是显而易见的,但我不知道它可能是什么。