aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ninja.cc5
-rw-r--r--testcase/shell_var.mk2
2 files changed, 1 insertions, 6 deletions
diff --git a/ninja.cc b/ninja.cc
index 8df5e19..6642792 100644
--- a/ninja.cc
+++ b/ninja.cc
@@ -626,10 +626,7 @@ class NinjaGenerator {
if (fp == NULL)
PERROR("fopen(ninja.sh) failed");
- shared_ptr<string> shell = ev_->EvalVar(kShellSym);
- if (shell->empty())
- shell = make_shared<string>("/bin/sh");
- fprintf(fp, "#!%s\n", shell->c_str());
+ fprintf(fp, "#!/bin/sh\n");
fprintf(fp, "# Generated by kati %s\n", kGitVersion);
fprintf(fp, "\n");
if (ninja_dir_ == ".")
diff --git a/testcase/shell_var.mk b/testcase/shell_var.mk
index a0c556f..8f5de31 100644
--- a/testcase/shell_var.mk
+++ b/testcase/shell_var.mk
@@ -1,5 +1,3 @@
-# TODO(c-ninja): Fix - ninja.sh should not use $SHELL.
-
$(info $(SHELL))
SHELL:=/bin/echo