summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorNathan Gass2019-11-19 19:06:03 +0100
committerNathan Gass2019-11-19 19:06:03 +0100
commit3c3c89f78026cd501b6744ccfe6488587105f819 (patch)
tree033278751da8c9767c49d6ac543b51e60596ffa5 /it.class
parentc9f3d551e1cc6a8fcee8df4b2286c9dda78a7b72 (diff)
downloaditools-3c3c89f78026cd501b6744ccfe6488587105f819.tar.gz
itools-3c3c89f78026cd501b6744ccfe6488587105f819.tar.bz2
itools-3c3c89f78026cd501b6744ccfe6488587105f819.zip
enable bash features in it::exec and it::system
Diffstat (limited to 'it.class')
-rw-r--r--it.class4
1 files 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;