See here: http://docs.julialang.org/en/latest/stdlib/base/?highlight=windows#Base.@windows
There are also the @windows_only ...code... @unix_only ...code.... @osx_only ...code.... @linux_only ....code... Or the variable name `OS_NAME` that will return the OS name as a symbol. Plenty of options :) On Tue, Dec 8, 2015 at 1:46 PM, Ben Ward <axolotlfan9...@gmail.com> wrote: > Hi, > > How can I check the OS in Julia? I thought it may be in the Getting Around > section of the reference manual but it's not. Basically I'd like to check > the OS to see if I should write to /dev/null or just NUL in the case of > windows. > > Thanks, > Ben. >