Searched defs:shell (Results 1 - 6 of 6) sorted by relevance

/build/kati/
H A Dfileutil_bench.cc22 std::string shell = "/bin/bash"; local
27 RunCommand(shell, shellflag, cmd, RedirectStderr::NONE, &result);
33 std::string shell = "/bin/bash "; local
38 RunCommand(shell, shellflag, cmd, RedirectStderr::NONE, &result);
H A Dfunc.h55 string shell; member in struct:CommandResult
H A Deval.cc379 string shell = GetShell(); local
380 shell += ' ';
381 shell += GetShellFlag();
382 return shell;
H A Dfileutil.cc63 int RunCommand(const string& shell, const string& shellflag, argument
68 if (shell[0] != '/' || shell.find_first_of(" $") != string::npos) {
71 cmd_with_shell = shell + " " + shellflag + " \"" + cmd_escaped + "\"";
76 // If the shell isn't complicated, we don't need to wrap in /bin/sh
77 argv[0] = shell.c_str();
H A Dregen.cc59 string shell; member in struct:__anon8::StampChecker::ShellResult
240 LOAD_STRING(fp, &sr->shell);
392 printf("shell %s: clean (no rerun)\n", sr->cmd.c_str());
400 printf("shell %s: ignored\n", sr->cmd.c_str());
404 COLLECT_STATS_WITH_SLOW_REPORT("shell time (regen)", sr->cmd.c_str());
406 RunCommand(sr->shell, sr->shellflag, sr->cmd, RedirectStderr::DEV_NULL, &result);
410 printf("shell %s: dirty\n", sr->cmd.c_str());
412 *err = StringPrintf("$(shell %s) was changed, regenerating...\n",
418 printf("shell %s: clean (rerun)\n", sr->cmd.c_str());
H A Dfunc.cc496 static void ShellFuncImpl(const string& shell, const string& shellflag, argument
522 COLLECT_STATS_WITH_SLOW_REPORT("func shell time", cmd.c_str());
523 RunCommand(shell, shellflag, cmd, RedirectStderr::NONE, s);
559 ERROR_LOC(ev->loc(), "kati doesn't support passing results of $(shell) "
570 const string&& shell = ev->GetShell(); local
575 ShellFuncImpl(shell, shellflag, cmd, ev->loc(), &out, &fc);
579 cr->shell = shell;
843 { "shell", &ShellFunc, 1, 1, false, false },

Completed in 232 milliseconds