string :sysinfo-system
Returns the name of the Operating System the interpreter in running on.
On Linux, the result is obtained by executing uname -s
. Most probably will be simply Linux
or GNU/Linux
.
On Windows, the result is guessed by peeking at Win32Platform, Win32MajorVersion and Win32MinorVersion variables. Notably, this means that is impossible to distinguish between desktop and server versions, eg. between Windows 8 and Windows Server 2012. If unable to determine system, will return Windows (Unknown)
.
# Advertisement :writeln s"I'm running " (:sysinfo-system) s", how about you?"
wikipage modified on 2014/0601/2317