17 Mar
2010
17 Mar
'10
8:09 a.m.
2010/3/16 Taco Hoekwater
local system = io.popen("uname -s"):read("*l")
You could test against os.uname().
Hello, here is what I get from os.uname() now: os.uname().sysname: Windows XP os.uname().machine: i686 os.uname().release: build 2600 os.uname().version: 5.01 Service Pack 3 os.uname().nodename: ROTIMN0L020707 No trace of cygwin, which is normal I guess, as the system calls go directly to windows, being cygwin-transparent... Any idea of how to detect cygwin? I must say I don't have any, as you cannot call cygwin-specific things in the binary... Thank you! -- Elie