From: Alexander Gladysh Date: Sun, 8 Feb 2009 22:22:48 +0000 (+0300) Subject: test/run: fixed OS X (where os.getenv("OS") returns nil) X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=0ddddd8279b75c69be850e5b41ced68fcb1f4f9b;p=metalua.git test/run: fixed OS X (where os.getenv("OS") returns nil) --- 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