From dbb1a267d78392a1919f9cd091ce68685e821064 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 8 Dec 2009 06:54:26 +0100 Subject: [PATCH] Fix ARGV[0] weirdness --- src/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index 34fd0d6a41..543099b7f9 100644 --- a/src/node.js +++ b/src/node.js @@ -929,7 +929,7 @@ process.exit = function (code) { var cwd = process.cwd(); // Make process.ARGV[0] and process.ARGV[1] into full paths. -if (process.ARGV[0].charAt(0) != "/") { +if (process.ARGV[0].indexOf('/') > 0) { process.ARGV[0] = path.join(cwd, process.ARGV[0]); }