diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2014-12-29 23:41:38 +0100 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2014-12-29 23:41:38 +0100 |
commit | 6632b6a8c3815670fef4257c136d461583052120 (patch) | |
tree | 71b61874b88071bf388319395b593dcfd9961755 /lualibs-lua.lua | |
parent | 281539cf53b8ec43d72e06cbdba874b2de6e758d (diff) | |
download | lualibs-6632b6a8c3815670fef4257c136d461583052120.tar.gz |
sync with Context as of 2014-12-29
Diffstat (limited to 'lualibs-lua.lua')
-rw-r--r-- | lualibs-lua.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lualibs-lua.lua b/lualibs-lua.lua index 9565f48..1a2a987 100644 --- a/lualibs-lua.lua +++ b/lualibs-lua.lua @@ -165,3 +165,14 @@ end if lua then lua.mask = load([[τεχ = 1]]) and "utf" or "ascii" end + +local flush = io.flush + +if flush then + + local execute = os.execute if execute then function os.execute(...) flush() return execute(...) end end + local exec = os.exec if exec then function os.exec (...) flush() return exec (...) end end + local spawn = os.spawn if spawn then function os.spawn (...) flush() return spawn (...) end end + local popen = io.popen if popen then function io.popen (...) flush() return popen (...) end end + +end |