Revert "startup: use `path.resolve` instead of `path.join(cwd, ...)`"
authorMaciej Małecki <maciej.malecki@notimplemented.org>
Fri, 24 Feb 2012 02:18:32 +0000 (03:18 +0100)
committerisaacs <i@izs.me>
Fri, 24 Feb 2012 04:23:26 +0000 (20:23 -0800)
commit27a937bcf824093b7707a845c6376cbaae1df78f
treed5376cd37190c3d8213427d9ffe3e258885f3c01
parentb73ec84ce1e867bcda9965ecf2a9e588625ee366
Revert "startup: use `path.resolve` instead of `path.join(cwd, ...)`"

This reverts commit b0c15412270f32e00c268c578f07a1ed032323f5.

Reverted commit introduced a regression causing `process.argv[0]` to be
invalid in node processes spawned from `PATH` (without explicit path to
executable file - for example when using global node installation).

Instead of finding a correct path to the executable, `process.cwd()`
would be prepended to `process.argv[0]`.
src/node.js