From 50c30d587eb097762be98f0d6d1b30811fd49e86 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Sun, 11 Aug 2013 20:23:00 +0200 Subject: beta 2013.08.11 20:23 --- tex/context/base/context-version.pdf | Bin 4107 -> 4100 bytes tex/context/base/l-os.lua | 8 +++++++- tex/context/base/status-files.pdf | Bin 24690 -> 24684 bytes 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'tex') diff --git a/tex/context/base/context-version.pdf b/tex/context/base/context-version.pdf index 7d5de0531..125257c7a 100644 Binary files a/tex/context/base/context-version.pdf and b/tex/context/base/context-version.pdf differ diff --git a/tex/context/base/l-os.lua b/tex/context/base/l-os.lua index 3838b5524..8bfcf786c 100644 --- a/tex/context/base/l-os.lua +++ b/tex/context/base/l-os.lua @@ -127,7 +127,13 @@ function io.popen (...) ioflush() return iopopen(...) end function os.resultof(command) local handle = io.popen(command,"r") - return handle and handle:read("*all") or "" + if handle then + local result = handle:read("*all") or "" + handle:close() + return result + else + return "" + end end if not io.fileseparator then diff --git a/tex/context/base/status-files.pdf b/tex/context/base/status-files.pdf index 11a18cb39..89c95cbff 100644 Binary files a/tex/context/base/status-files.pdf and b/tex/context/base/status-files.pdf differ -- cgit v1.2.3