set-alias for complex call

前端 未结 1 719
野性不改
野性不改 2021-01-23 18:25

I\'m trying to set an alias for accessing my scheme interpreter. I tried the following:

set-alias scheme \'& \"C:\\Program Files (x86)\\MIT-GNU Scheme\\bin\\         


        
1条回答
  •  佛祖请我去吃肉
    2021-01-23 18:59

    The alias feature is meant for simple name aliases and doesn't allow for arguments. What you need is a function e.g.:

    function scheme {
        & "C:\Program Files (x86)\MIT-GNU Scheme\bin\mit-scheme.exe" --library "C:\Program Files (x86)\MIT-GNU Scheme\lib"
    }
    

    0 讨论(0)
提交回复
热议问题