我正在尝试设置一个别名来访问我的方案解释器。我尝试了以下方法:
set-alias scheme '& "C:\Program Files (x86)\MIT-GNU Scheme\bin\mit-scheme.exe" --library "C:\Program Files (x86)\MIT-GNU Scheme\lib"'
调用时,scheme
我收到以下错误消息:
Cannot resolve alias 'scheme' because it refers to term '& "C:\Program Files (x86)\MIT-GNU Scheme\bin\mit-scheme.exe" -
-library "C:\Program Files (x86)\MIT-GNU Scheme\lib"', which is not recognized as a cmdlet, function, operable program,
or script file. Verify the term and try again.
At line:1 char:7
+ scheme <<<<
+ CategoryInfo : ObjectNotFound: (scheme:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : AliasNotResolvedException
& "C:\Program Files (x86)\MIT-GNU Scheme\bin\mit-scheme.exe" --library "C:\Program Files (x86)\MIT-GNU Scheme\lib"
另一方面,直接调用可以正常工作。