From 36d49cb0045b51f9d2287c70f2c583b52b85c302 Mon Sep 17 00:00:00 2001 From: Fidel Mato Date: Wed, 15 Jan 2014 14:22:02 +0100 Subject: [PATCH] taskshell - Add external calls from taskshell --- src/shell/main.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/shell/main.cpp b/src/shell/main.cpp index 69a65b9cd..fcafece3b 100644 --- a/src/shell/main.cpp +++ b/src/shell/main.cpp @@ -183,6 +183,19 @@ int main (int argc, const char** argv) } } + // External calls. + if (strcmp (w[1], "xc") == 0 && p.we_wordc > 2) + { + std::string combined = ""; + for (int i = 2; i < p.we_wordc - 1 ; ++i) + { + combined += std::string (w[i]) + " "; + } + combined += w[p.we_wordc - 1]; // last goes without a blank + system (combined.c_str ()); // not checked + continue; + } + int status = context.initialize (p.we_wordc, (const char**)p.we_wordv); wordfree(&p); #else