Fix regression introduced in fe804d9b
authorisaacs <i@izs.me>
Wed, 5 Jan 2011 19:12:36 +0000 (11:12 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Thu, 6 Jan 2011 22:39:06 +0000 (14:39 -0800)
commit48334dc0b1b8211f07b2fac5a00a41be58c0c3ee
tree7c0c98ecfd8fabb6949efd10847c853605919509
parentb6dafc1a4708a61c1335ced903f464fdd3ebb294
Fix regression introduced in fe804d9b

It breaks argv[0] on posix systems, and makes it so that npm can't
determine whether node was run from an explicit location, or via "node",
so the configs default improperly.

If on windows, don't do this behavior.  On posix, go back to the old
behavior.
src/node.js