From 04e05dc33d64aba28a84fc9af4268e14c2abd965 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 30 Aug 2015 16:03:00 +0200 Subject: Defer command interpretation to `sh` Otherwise one can not easily enter more complex shell commands such as pipe chains and so on. The goal of _MetaTerm_ is not to implement a new shell language but to facilitate existing ones which is why this is best deferred to an existing application. --- src/widget/EmbeddedTerminal.qml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/widget/EmbeddedTerminal.qml b/src/widget/EmbeddedTerminal.qml index 497bf49..d8c89d4 100644 --- a/src/widget/EmbeddedTerminal.qml +++ b/src/widget/EmbeddedTerminal.qml @@ -56,16 +56,8 @@ Item { initialWorkingDirectory: item.workingDirectory - shellProgram: { - return (item.program).split(" ")[0]; - } - - shellProgramArgs: { - const elements = (item.program).split(" "); - elements.shift(); - - return elements; - } + shellProgram: 'sh' + shellProgramArgs: [ '-c', program ] onFinished: { clearScreen(); -- cgit v1.2.3