diff options
author | Nathan Gass | 2019-11-19 19:06:03 +0100 |
---|---|---|
committer | Nathan Gass | 2019-11-19 19:06:03 +0100 |
commit | 3c3c89f78026cd501b6744ccfe6488587105f819 (patch) | |
tree | 033278751da8c9767c49d6ac543b51e60596ffa5 /it.class | |
parent | c9f3d551e1cc6a8fcee8df4b2286c9dda78a7b72 (diff) | |
download | itools-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.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |