From 0ddddd8279b75c69be850e5b41ced68fcb1f4f9b Mon Sep 17 00:00:00 2001 From: Alexander Gladysh Date: Mon, 9 Feb 2009 01:22:48 +0300 Subject: [PATCH] test/run: fixed OS X (where os.getenv("OS") returns nil) --- src/tests/run.mlua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/run.mlua b/src/tests/run.mlua index e6003a6..de91738 100644 --- a/src/tests/run.mlua +++ b/src/tests/run.mlua @@ -3,7 +3,7 @@ -{ extension 'xloop' } -ls = io.popen (os.getenv "OS" :match "^Windows" and "dir /b" or "ls") +ls = io.popen ( (os.getenv("OS") or "") :match "^Windows" and "dir /b" or "ls") this_script = arg[1] for filename in ls :lines() if filename ~= this_script and filename :strmatch "%.m?lua$" do -- 2.44.0