summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;