We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GetCwd
1 parent 7940db7 commit 4a2c6ffCopy full SHA for 4a2c6ff
src/path.cc
@@ -240,8 +240,7 @@ std::string PathResolve(Environment* env,
240
const size_t numArgs = paths.size();
241
242
for (int i = numArgs - 1; i >= -1 && !resolvedAbsolute; i--) {
243
- const std::string& path =
244
- (i >= 0) ? std::string(paths[i]) : env->GetCwd(env->exec_path());
+ const std::string& path = (i >= 0) ? std::string(paths[i]) : cwd;
245
246
if (!path.empty()) {
247
resolvedPath = std::string(path) + "/" + resolvedPath;
0 commit comments