From 3c3c89f78026cd501b6744ccfe6488587105f819 Mon Sep 17 00:00:00 2001
From: Nathan Gass
Date: Tue, 19 Nov 2019 19:06:03 +0100
Subject: enable bash features in it::exec and it::system

---
 it.class | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/it.class b/it.class
index 96ec965..9fcd3ef 100644
--- a/it.class
+++ b/it.class
@@ -627,7 +627,7 @@ static function exec(/* $cmd, $values1 = array(), ... */)
 	$cmd = call_user_func_array('it::shell_command', $args);
 
 	$before = gettimeofday(true);
-	$result = EDC('noexec') ? "" : (string)shell_exec($cmd);
+	$result = EDC('noexec') ? "" : (string)shell_exec("set +o posix\n" . $cmd);
 
 	@it::log('exec', round((gettimeofday(true) - $before)*1000) . "\t$cmd");
 
@@ -647,7 +647,7 @@ static function system(/* $cmd, $values1 = array(), ... */)
 
 	$before = gettimeofday(true);
 	if (!EDC('noexec'))
-		system($cmd, $result);
+		system("set +o posix\n" . $cmd, $result);
 	else
 		$result = 0;
 
-- 
cgit v1.2.3