Why does passing arguments to the command in an env invocation not work?
Posted
by
timdisney
on Stack Overflow
See other posts from Stack Overflow
or by timdisney
Published on 2011-11-13T01:33:20Z
Indexed on
2011/11/13
1:51 UTC
Read the original article
Hit count: 134
I have a shell script to run node with some arguments like so:
#!/usr/bin/env node --harmony_proxies
...
This works fine under OS X but in Ubuntu it errors with:
/usr/bin/env: node --harmony_proxies: No such file or directory
Node is definitely installed and on the PATH since if I remove the --harmony_proxies
flag it works fine. Is there some different way of passing arguments when using env
in Ubuntu?
© Stack Overflow or respective owner