use xargs and -e instead of a direct pipe. On Wednesday, January 30, 2013 2:36:04 PM UTC-6, Kilian C. wrote: > > using /dev/stdin as file reference kinda works > > $ echo "console.log(process.argv)" | node /dev/stdin --myarg > [ 'node', '/dev/stdin', '--myarg' ] > > but it messes with the node_modules folder, in this case node is looking > for modules in /dev/node_modules… instead of cwd > > -- > Kilian C. > > On Wednesday, January 30, 2013 at 8:58 PM, Kilian C. wrote: > > How do I make it work? > > $ echo "console.log(process.argv)" | node --myarg > > -- > Kilian C. > > >
-- -- 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 --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
