From 755a628eee7c5b1610289e13c40b90f07544ab92 Mon Sep 17 00:00:00 2001 From: Tiberiu Patrascu Date: Fri, 16 Jun 2017 01:42:56 +0300 Subject: [PATCH 1/2] change child process to bash --- lib/python-run-terminalnx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/python-run-terminalnx.js b/lib/python-run-terminalnx.js index 454ec2a..0edc342 100755 --- a/lib/python-run-terminalnx.js +++ b/lib/python-run-terminalnx.js @@ -82,7 +82,7 @@ function run() { } var child = child_process.spawn(sel_term, [ - ex_op, "/bin/sh", __dirname + "/../bin/run_python_code.sh", file.path, c_l_a + ex_op, "/bin/bash", __dirname + "/../bin/run_python_code.sh", file.path, c_l_a ], { cwd: info.dir, detached: true From 02326260ea80620771baa5a80950c5e156f049f7 Mon Sep 17 00:00:00 2001 From: Tiberiu Patrascu Date: Fri, 16 Jun 2017 01:43:24 +0300 Subject: [PATCH 2/2] change shell to bash --- bin/run_python_code.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/run_python_code.sh b/bin/run_python_code.sh index 913f8e7..5511ce1 100755 --- a/bin/run_python_code.sh +++ b/bin/run_python_code.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash oldIFS=$IFS IFS='' arg_l_c=()