我有一個shell腳本與一些參數,像這樣運行節點:爲什麼在env調用中傳遞參數給命令不起作用?
#!/usr/bin/env node --harmony_proxies
...
這在OS X,但在Ubuntu它的錯誤工作正常:
/usr/bin/env: node --harmony_proxies: No such file or directory
節點肯定是安裝在PATH,因爲如果我刪除--harmony_proxies
標誌,它工作正常。在Ubuntu中使用env
時,是否有一些不同的方法來傳遞參數?
只是可以肯定,確實'在/ usr/bin中/ env的節點正確--harmony_proxies在命令行腳本name'工作? –