This is because of the way linux handles the #!, it happens in all
programs, you can change it to...
#!/bin/sh
/usr/local/bin/node --nouse_idle_notification --expose_gc
--max_old_space_size=32768 <<EOF
console.log('gc exposed: ' + !!global.gc);
EOF
http://en.wikipedia.org/wiki/Shebang_(Unix)
> Another portability problem is the interpretation of the command
> arguments. Some systems, including Linux, do not split up the arguments
On Friday, May 11, 2012 10:33:02 PM UTC+10, Joran Greef wrote:
>
> I have a bash script which uses Node as the interpreter and I am trying to
> pass V8 options like this:
>
> #!/usr/local/bin/node --nouse_idle_notification --expose_gc
> --max_old_space_size=32768
> console.log('gc exposed: ' + !!global.gc);
>
> This works on Mac but not on Ubuntu, the flags don't seem to have any
> effect.
>
> Anyone have any idea what to change?
>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en