diff options
author | Clement Farabet <clement.farabet@gmail.com> | 2012-08-22 01:06:41 +0400 |
---|---|---|
committer | Clement Farabet <clement.farabet@gmail.com> | 2012-08-22 01:06:41 +0400 |
commit | 23df26e662303b6406394eefc1923f36acdcb31c (patch) | |
tree | 86fc2cf4a5909f2cbc75ada97ed1d852981b12d6 | |
parent | 2f5d5758abfcdc0d83bb994e8e718aeda248fdba (diff) |
fixed str
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -72,7 +72,7 @@ toc = function(verbose) -- side effect: file in /tmp -------------------------------------------------------------------------------- execute = function(cmd, readwhat) - local tmpfile = '/tmp/lua.os.execute.out.' .. _G.tostring(clock()) + local tmpfile = os.tmpname() .. _G.tostring(clock()) local cmd = cmd .. ' 1>'.. tmpfile..' 2>' .. tmpfile os.execute(cmd) local file = _G.assert(io.open(tmpfile)) |